summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-11-22 20:12:36 +0100
committersmos <seth.mos@dds.nl>2011-11-22 20:14:44 +0100
commitaf6f42c11cff923970dd1f5429d74f929b3c10ff (patch)
treee53bfed67d7a485eed30c8a5c25d501bd4a71c37
parentf64532e5cb1a0f39c2ab84252754f5dd5967db3d (diff)
downloadpfsense-af6f42c11cff923970dd1f5429d74f929b3c10ff.zip
pfsense-af6f42c11cff923970dd1f5429d74f929b3c10ff.tar.gz
Ecnlose the host-name in quotes so that numerical values work.
Fixes ticket #2020
-rw-r--r--etc/inc/services.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index a6a99a2..5bcd756 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -364,7 +364,7 @@ EOD;
if ($sm['hostname']) {
$dhhostname = str_replace(" ", "_", $sm['hostname']);
$dhhostname = str_replace(".", "_", $dhhostname);
- $dhcpdconf .= " option host-name {$dhhostname};\n";
+ $dhcpdconf .= " option host-name \"{$dhhostname}\";\n";
}
if ($sm['netbootfile'])
$dhcpdconf .= " filename \"{$sm['netbootfile']}\";\n";
OpenPOWER on IntegriCloud