Project

General

Profile

« Previous | Next » 

Revision ac671944

Added by Scott Ullrich almost 20 years ago

Allow a IP address on lan if its bridged

View differences:

usr/local/www/interfaces_lan.php
80 80
	if (!$_POST['bridge']) {
81 81
		$reqdfields = explode(" ", "ipaddr subnet");
82 82
		$reqdfieldsn = explode(",", "IP address,Subnet bit count");
83
		
84
		do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
83 85
	}
84 86

  
85
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
86

  
87 87
	if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) {
88 88
		$input_errors[] = "A valid IP address must be specified.";
89 89
	}
......
151 151
	document.iform.subnet.value = gen_bits_lan(document.iform.ipaddr.value);
152 152
}
153 153
function enable_change(enable_over) {
154
	return;
154 155
	var endis;
155 156
	endis = !((document.iform.bridge.selectedIndex == 0) || enable_over);
156 157
	document.iform.ipaddr.disabled = endis;

Also available in: Unified diff