summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorpierrepomes <pierre.pomes@interface-tech.com>2009-11-27 16:57:48 -0500
committerpierrepomes <pierre.pomes@interface-tech.com>2009-11-27 16:57:48 -0500
commit46c5b763ef26269b50d303fc62793c58a42eefb1 (patch)
tree30a68a5896cb11414fc89740ddf44f03c1ef2f47 /etc/inc
parent64fba8ec93fa47d284483e6da6a1989d6dd46ce6 (diff)
downloadpfsense-46c5b763ef26269b50d303fc62793c58a42eefb1.zip
pfsense-46c5b763ef26269b50d303fc62793c58a42eefb1.tar.gz
Fix hostname checking when entering a dhcp static mapping and replace "." with "_" when writing "host-name" option in dhcpd.conf. Resolves #159
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/services.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 0622fe3..3969efa 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -341,6 +341,7 @@ EOD;
if ($sm['hostname']) {
$dhhostname = str_replace(" ", "_", $sm['hostname']);
+ $dhhostname = str_replace(".", "_", $dhhostname);
$dhcpdconf .= " option host-name {$dhhostname};\n";
}
OpenPOWER on IntegriCloud