Project

General

Profile

« Previous | Next » 

Revision 6a781df6

Added by Ermal LUÇI over 12 years ago

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

View differences:

etc/inc/vpn.inc
118 118
		mwexec("/sbin/ifconfig enc0 down");
119 119
		exec("/sbin/sysctl net.inet.ip.ipsec_in_use=0");
120 120

  
121
		return true;
121
		return 0;
122 122
	} else {
123 123
		mwexec("/sbin/ifconfig enc0 up");
124 124
		mwexec("/sbin/sysctl net.inet.ip.ipsec_in_use=1");
......
987 987

  
988 988
		if ($g['booting'])
989 989
			echo "done\n";
990
	}
991 990

  
992
	return 0;
991
		return count($filterdns_list);
992
	}
993 993
}
994 994

  
995 995
/* 

Also available in: Unified diff