mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Show OpenVPN instances on Status > Traffic Graphs, with descriptions.
This commit is contained in:
parent
e3dc055a4f
commit
9f5d14ce72
@ -56,7 +56,17 @@ else
|
||||
|
||||
// Get configured interface list
|
||||
$ifdescrs = get_configured_interface_with_descr();
|
||||
$ifdescrs["enc0"] = "IPSEC";
|
||||
if (isset($config['ipsec']['enable']))
|
||||
$ifdescrs['enc0'] = "IPsec";
|
||||
foreach (array('server', 'client') as $mode) {
|
||||
if (is_array($config['openvpn']["openvpn-{$mode}"])) {
|
||||
foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $setting) {
|
||||
if (!isset($setting['disable'])) {
|
||||
$ifdescrs['ovpn' . substr($mode, 0, 1) . $setting['vpnid']] = gettext("OpenVPN") . " ".$mode.": ".htmlspecialchars($setting['description']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($_GET['if']) {
|
||||
$curif = $_GET['if'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user