diff options
author | jim-p <jimp@pfsense.org> | 2012-12-07 09:32:25 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-12-07 09:33:10 -0500 |
commit | 2dd57bd95f67044bc7cfebdcda287fd88f16f066 (patch) | |
tree | 2e01346cde63a7ab09fe7f701d3b5faab825a11f | |
parent | 94d1cd834d19567d8fe64464bd2f12bcea1fb4f4 (diff) | |
download | pfsense-RELENG_2_0_2.zip pfsense-RELENG_2_0_2.tar.gz |
Also consider 0.0.0.0/0 here since it fails both these tests but is still a valid/special config.RELENG_2_0_2
-rw-r--r-- | etc/inc/vpn.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 33002bf..1445da6 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -650,7 +650,7 @@ EOD; $localid_type = "subnet"; } // Don't let an empty subnet into racoon.conf, it can cause parse errors. Ticket #2201. - if (!is_ipaddr($localid_data) && !is_subnet($localid_data)) { + if (!is_ipaddr($localid_data) && !is_subnet($localid_data) && ($localid_data != "0.0.0.0/0")) { log_error("Invalid IPsec Phase 2 \"{$ph2ent['descr']}\" - {$ph2ent['localid']['type']} has no subnet."); continue; } |