Revision e4b8da19
Added by Chris Buechler over 15 years ago
usr/local/www/services_dhcp.php | ||
---|---|---|
221 | 221 |
$input_errors[] = "A valid IP address must be specified for the primary/secondary NTP servers."; |
222 | 222 |
if (($_POST['domain'] && !is_domain($_POST['domain']))) |
223 | 223 |
$input_errors[] = "A valid domain name must be specified for the DNS domain."; |
224 |
if (($_POST['tftp'] && !is_ipaddr($_POST['tftp'])))
|
|
225 |
$input_errors[] = "A valid IP address must be specified for the TFTP server."; |
|
224 |
if (($_POST['tftp'] && (!is_ipaddr($_POST['tftp']) && !is_domain($_POST['tftp']))))
|
|
225 |
$input_errors[] = "A valid IP address or hostname must be specified for the TFTP server.";
|
|
226 | 226 |
if (($_POST['nextserver'] && !is_ipaddr($_POST['nextserver']))) |
227 | 227 |
$input_errors[] = "A valid IP address must be specified for the network boot server."; |
228 | 228 |
|
Also available in: Unified diff
allow hostname for TFTP server