diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-03 15:07:59 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-03 15:07:59 +0000 |
commit | cdd5b2ced7453aedc0c8b6faf759315bf4b9a6fe (patch) | |
tree | cfdf94b9fc1ff51f44e26197ae669194a3fcc566 | |
parent | 741077bcc662706d030e8b13fb787ef6f935eb0d (diff) | |
download | pfsense-cdd5b2ced7453aedc0c8b6faf759315bf4b9a6fe.zip pfsense-cdd5b2ced7453aedc0c8b6faf759315bf4b9a6fe.tar.gz |
Use global variable.
-rw-r--r-- | etc/inc/vpn.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 6b11053..902dede 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -102,8 +102,8 @@ function vpn_ipsec_configure($ipchg = false) mwexec("/sbin/ifconfig enc0 up"); /* get the automatic /etc/ping_hosts.sh ready */ - unlink_if_exists("/var/db/ipsecpinghosts"); - touch("/var/db/ipsecpinghosts"); + unlink_if_exists("{$g['vardb_path']}/ipsecpinghosts"); + touch("{$g['vardb_path']}/ipsecpinghosts"); if(isset($config['ipsec']['preferredoldsa'])) mwexec("/sbin/sysctl -w net.key.preferred_oldsa=-30"); |