diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 1c07200..91aba0c 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -40,11 +40,6 @@ pfSense_MODULE: utils */ -function strify($str) { - return '"' . $str . '"'; -}; - - /* implement ipv6 route advertising deamon */ function services_radvd_configure() { global $config, $g; @@ -471,11 +466,9 @@ EOPP; $dnscfg .= " option domain-name \"{$dhcpifconf['domain']}\";\n"; } - if($dhcpifconf['domainsearchlist'] <> "") { + if($dhcpifconf['domainsearchlist'] <> "") { $dnscfg .= " option domain-search \"" . join("\",\"", preg_split("/[ ;]+/", $dhcpifconf['domainsearchlist'])) . "\";\n"; - $domains = implode(',', array_map(strify, explode(' ', $dhcpifconf['domainsearchlist']))); - $dnscfg .= " option domain-search {$domains};\n"; - } + } if (isset($dhcpifconf['ddnsupdate'])) { if($dhcpifconf['ddnsdomain'] <> "") { |