summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-03 15:07:59 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-03 15:07:59 +0000
commitcdd5b2ced7453aedc0c8b6faf759315bf4b9a6fe (patch)
treecfdf94b9fc1ff51f44e26197ae669194a3fcc566 /etc
parent741077bcc662706d030e8b13fb787ef6f935eb0d (diff)
downloadpfsense-cdd5b2ced7453aedc0c8b6faf759315bf4b9a6fe.zip
pfsense-cdd5b2ced7453aedc0c8b6faf759315bf4b9a6fe.tar.gz
Use global variable.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc4
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");
OpenPOWER on IntegriCloud