summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-24 10:12:06 -0400
committerjim-p <jimp@pfsense.org>2011-08-24 10:14:00 -0400
commit52e21fa190b1ec37f8ffd9b6fe1ddf758050a640 (patch)
tree493e50530f7a3e4f01effe43f4a551c8d1d2dc68 /etc/inc
parent2299007e8078329fe4dcc708f672717409ead90c (diff)
downloadpfsense-52e21fa190b1ec37f8ffd9b6fe1ddf758050a640.zip
pfsense-52e21fa190b1ec37f8ffd9b6fe1ddf758050a640.tar.gz
Fix VPN network listing for OpenVPN, and also add tunnel networks to this list.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 7775d2f..18e5067 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -700,8 +700,11 @@ function filter_get_vpns_list() {
if(is_array($config['openvpn']["openvpn-$type"])) {
foreach ($config['openvpn']["openvpn-$type"] as & $settings) {
if(is_array($settings)) {
- if(is_subnet($settings['remote-subnet']) && $settings['remote-subnet'] <> "0.0.0.0/0") {
- $vpns_arr[] = $settings['remote-subnet'];
+ if(is_subnet($settings['remote_network']) && $settings['remote_network'] <> "0.0.0.0/0") {
+ $vpns_arr[] = $settings['remote_network'];
+ }
+ if(is_subnet($settings['tunnel_network']) && $settings['tunnel_network'] <> "0.0.0.0/0") {
+ $vpns_arr[] = $settings['tunnel_network'];
}
}
}
OpenPOWER on IntegriCloud