mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #1560 from phil-davis/get_possible_traffic_source_addresses
This commit is contained in:
commit
bd17a3035f
@ -5266,10 +5266,8 @@ function get_possible_traffic_source_addresses($include_ipv6_link_local=false) {
|
||||
if (is_array($config['openvpn']["openvpn-{$mode}"])) {
|
||||
foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $setting) {
|
||||
if (!isset($setting['disable'])) {
|
||||
$vpn = array();
|
||||
$vpn['value'] = 'ovpn' . substr($mode, 0, 1) . $setting['vpnid'];
|
||||
$vpn['name'] = gettext("OpenVPN") . " ".$mode.": ".htmlspecialchars($setting['description']);
|
||||
$sourceips[] = $vpn;
|
||||
$sourceips_key = 'ovpn' . substr($mode, 0, 1) . $setting['vpnid'];
|
||||
$sourceips[$sourceips_key] = gettext("OpenVPN") . " ".$mode.": ".htmlspecialchars($setting['description']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user