diff options
author | Ermal <eri@pfsense.org> | 2013-04-22 20:27:25 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-04-22 20:27:25 +0000 |
commit | 6a781df6765e09d5ed1e3cb911509afb18f2b4a7 (patch) | |
tree | 299519097b2fec5302a9e52b6771c9f5fc046a1e /etc/inc/vpn.inc | |
parent | 678e8bc40c172b3068a457da98adfa1f4492e58d (diff) | |
download | pfsense-6a781df6765e09d5ed1e3cb911509afb18f2b4a7.zip pfsense-6a781df6765e09d5ed1e3cb911509afb18f2b4a7.tar.gz |
Make return value of vpn_ipsec_configure() have a meaning when ipsec is enabled. This can be used to detect if there are dynamic hostnames on ipsec policies
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index d43c069..523a89c 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -118,7 +118,7 @@ function vpn_ipsec_configure($ipchg = false) mwexec("/sbin/ifconfig enc0 down"); exec("/sbin/sysctl net.inet.ip.ipsec_in_use=0"); - return true; + return 0; } else { mwexec("/sbin/ifconfig enc0 up"); mwexec("/sbin/sysctl net.inet.ip.ipsec_in_use=1"); @@ -987,9 +987,9 @@ EOD; if ($g['booting']) echo "done\n"; - } - return 0; + return count($filterdns_list); + } } /* |