diff options
author | Ermal <eri@pfsense.org> | 2013-12-19 14:52:59 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-19 14:52:59 +0000 |
commit | cc2630208cc31ac3a19c185036a4b589d125e99a (patch) | |
tree | f5a18230045e119a35c767371c455dae7d8893b9 /etc/inc/vpn.inc | |
parent | 85d0e9591d0fd4d09f739491b76bb5aa4acd7b08 (diff) | |
download | pfsense-cc2630208cc31ac3a19c185036a4b589d125e99a.zip pfsense-cc2630208cc31ac3a19c185036a4b589d125e99a.tar.gz |
Provide a setting to disable the auto added LAN SPDs in the DB
Diffstat (limited to 'etc/inc/vpn.inc')
-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 3dc4a4a..75b10d7 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -828,7 +828,7 @@ EOD; $natfilterrules = false; if (is_array($a_phase2) && count($a_phase2)) { /* Try to prevent people from locking themselves out of webgui. Just in case. */ - if ($config['interfaces']['lan']) { + if (!isset($config['system']['noinstalllanspd']) && $config['interfaces']['lan']) { $lanip = get_interface_ip("lan"); if (!empty($lanip) && is_ipaddrv4($lanip)) { $lansn = get_interface_subnet("lan"); |