mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Split up gateway pools and check them. $_POST['gateway'] has already been moved to the gateway box.
This commit is contained in:
parent
52031f9f78
commit
ad356bb7ee
@ -99,10 +99,13 @@ if ($_POST) {
|
||||
for ($j = 1; isset ($config['interfaces']['opt' . $j]); $j++) {
|
||||
$ifdescrs['opt' . $j] = "opt" . $j;
|
||||
}
|
||||
foreach($ifdescrs as $iface) {
|
||||
if($config['interfaces'][$iface]['ipaddr'] <> "")
|
||||
if($config['interfaces'][$iface]['ipaddr'] == $_POST['gateway'])
|
||||
$input_errors[] = "{$_POST['gateway']} is currently being referenced by an interface ip address on {$iface}.";
|
||||
foreach($pconfig['servers'] as $svrent) {
|
||||
$split_ip = split("\|", $svrent);
|
||||
foreach($ifdescrs as $iface) {
|
||||
if($config['interfaces'][$iface]['ipaddr'] <> "")
|
||||
if($config['interfaces'][$iface]['ipaddr'] == $split_ip[0])
|
||||
$input_errors[] = "{$split_ip[0]} is currently being referenced by an interface ip address on {$iface}.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user