summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-04-10 14:12:58 -0400
committerChris Buechler <cmb@pfsense.org>2010-04-10 14:12:58 -0400
commite4b8da19a4075dcb05b1cc19190395209770e1d4 (patch)
tree57d579eb714fac5620b69d880c198a8815c4cef8 /usr
parent18e9b77efecfc6d93850756060d0958b1a68ad53 (diff)
downloadpfsense-e4b8da19a4075dcb05b1cc19190395209770e1d4.zip
pfsense-e4b8da19a4075dcb05b1cc19190395209770e1d4.tar.gz
allow hostname for TFTP server
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index e4697a8..cc3d1e4 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -221,8 +221,8 @@ if ($_POST) {
$input_errors[] = "A valid IP address must be specified for the primary/secondary NTP servers.";
if (($_POST['domain'] && !is_domain($_POST['domain'])))
$input_errors[] = "A valid domain name must be specified for the DNS domain.";
- if (($_POST['tftp'] && !is_ipaddr($_POST['tftp'])))
- $input_errors[] = "A valid IP address must be specified for the TFTP server.";
+ if (($_POST['tftp'] && (!is_ipaddr($_POST['tftp']) && !is_domain($_POST['tftp']))))
+ $input_errors[] = "A valid IP address or hostname must be specified for the TFTP server.";
if (($_POST['nextserver'] && !is_ipaddr($_POST['nextserver'])))
$input_errors[] = "A valid IP address must be specified for the network boot server.";
OpenPOWER on IntegriCloud