Revision 8209517d
Added by Jim Pingle over 9 years ago
src/usr/local/www/services_dhcp.php | ||
---|---|---|
266 | 266 |
|
267 | 267 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); |
268 | 268 |
|
269 |
if (($_POST['nonak']) && !empty($_POST['failover_peerip'])) { |
|
270 |
$input_errors[] = gettext("Ignore Denied Clients may not be used when a Failover Peer IP is defined."); |
|
271 |
} |
|
272 |
|
|
269 | 273 |
if (($_POST['range_from'] && !is_ipaddrv4($_POST['range_from']))) { |
270 | 274 |
$input_errors[] = gettext("A valid range must be specified."); |
271 | 275 |
} |
... | ... | |
803 | 807 |
'Ignore denied clients', |
804 | 808 |
'Denied clients will be ignored rather than rejected.', |
805 | 809 |
$pconfig['nonak'] |
806 |
)); |
|
810 |
))->setHelp("This option is not compatible with failover and cannot be enabled when a Failover Peer IP address is configured.");
|
|
807 | 811 |
|
808 | 812 |
|
809 | 813 |
if (is_numeric($pool) || ($act == "newpool")) { |
Also available in: Unified diff
Prevent "Ignore denied clients" and "Failover Peer IP" from being combined in the DHCP server settings for IPv4. The daemon fails to start when configured in this way, it apparently only allows "allow" or "deny" in failover mode. Fixes #5898