Project

General

Profile

« Previous | Next » 

Revision 9f414c69

Added by Scott Ullrich about 20 years ago

Do not worry about subnet bits when using 0.0.0.0

Ticket #290

View differences:

usr/local/www/vpn_ipsec_edit.php
153 153
		$input_errors[] = "The P2 lifetime must be an integer.";
154 154
	}
155 155
	if ($_POST['remotebits'] && (!is_numeric($_POST['remotebits']) || ($_POST['remotebits'] < 0) || ($_POST['remotebits'] > 32))) {
156
		$input_errors[] = "The remote network bits are invalid.";
156
		if(!$_POST['remotenet'] == "0.0.0.0")
157
			$input_errors[] = "The remote network bits are invalid.";
157 158
	}
158 159
	if (($_POST['remotenet'] && !is_ipaddr($_POST['remotenet'])) or $_POST['remotenet'] == "0.0.0.0") {
159 160
		$input_errors[] = "A valid remote network address must be specified.";

Also available in: Unified diff