Project

General

Profile

« Previous | Next » 

Revision cdd5b2ce

Added by Ermal Luçi over 15 years ago

Use global variable.

View differences:

etc/inc/vpn.inc
102 102
	mwexec("/sbin/ifconfig enc0 up");
103 103

  
104 104
	/* get the automatic /etc/ping_hosts.sh ready */
105
	unlink_if_exists("/var/db/ipsecpinghosts");
106
	touch("/var/db/ipsecpinghosts");
105
	unlink_if_exists("{$g['vardb_path']}/ipsecpinghosts");
106
	touch("{$g['vardb_path']}/ipsecpinghosts");
107 107

  
108 108
	if(isset($config['ipsec']['preferredoldsa']))
109 109
		mwexec("/sbin/sysctl -w net.key.preferred_oldsa=-30");

Also available in: Unified diff