Revision 8b6ae027
Added by Seth Mos over 14 years ago
usr/local/www/interfaces.php | ||
---|---|---|
388 | 388 |
} |
389 | 389 |
} |
390 | 390 |
/* input validation */ |
391 |
if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]['enable']) && $_POST['type'] != "static")
|
|
391 |
if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]['enable']) && (! preg_match("/^static/", $_POST['type'])))
|
|
392 | 392 |
$input_errors[] = gettext("The DHCP Server is active on this interface and it can be used only with a static IP configuration. Please disable the DHCP Server service on this interface first, then change the interface configuration."); |
393 | 393 |
|
394 | 394 |
switch($_POST['type']) { |
Also available in: Unified diff
Check against static configurations which can be staticv4 staticv6 or staticv4v6