summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-31 17:38:27 +0000
committerErmal <eri@pfsense.org>2010-08-31 17:38:27 +0000
commitd9a417f8f4068da48d6faad37080ebfa4216a470 (patch)
treec6ed11465efaa59d3e5e9fd7c1f9d52f3ffad2ff
parent1ee3ed0f4c16c2d2b08d0db2426bcbfec7a61059 (diff)
downloadpfsense-d9a417f8f4068da48d6faad37080ebfa4216a470.zip
pfsense-d9a417f8f4068da48d6faad37080ebfa4216a470.tar.gz
Check for 0.0.0.0/0 to not be added to the table. It breaks stuff as in http://forum.pfsense.org/index.php/topic,27963.0.html
-rw-r--r--etc/inc/filter.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 5f163fe..7d6b8fb 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -661,8 +661,8 @@ 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'])) {
- $vpns_arr[] = $tunnel['remote_network'];
+ if(is_subnet($settings['remote-subnet']) && $settings['remote-subnet'] <> "0.0.0.0/0") {
+ $vpns_arr[] = $settings['remote-subnet'];
}
}
}
OpenPOWER on IntegriCloud