Project

General

Profile

« Previous | Next » 

Revision d17c7b79

Added by Jim Pingle about 12 years ago

Change test after IPsec apply to check for any value >= 0. If a user has hostnames vpn_ipsec_configure() now returns the number of hostnames, so the previous test failed and the "apply changes" button would never go away.

View differences:

usr/local/www/vpn_ipsec.php
63 63
		/* reload the filter in the background */
64 64
		filter_configure();
65 65
		$savemsg = get_std_save_message($retval);
66
		if ($retval == 0) {
66
		if ($retval >= 0) {
67 67
			if (is_subsystem_dirty('ipsec'))
68 68
				clear_subsystem_dirty('ipsec');
69 69
		}
usr/local/www/vpn_ipsec_mobile.php
112 112
	$retval = 0;
113 113
	$retval = vpn_ipsec_configure();
114 114
	$savemsg = get_std_save_message($retval);
115
	if ($retval == 0)
115
	if ($retval >= 0)
116 116
		if (is_subsystem_dirty('ipsec'))
117 117
			clear_subsystem_dirty('ipsec');
118 118
}

Also available in: Unified diff