diff options
author | Phil Davis <phil.davis@inf.org> | 2016-08-16 22:48:26 +0930 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-08-16 09:23:51 -0400 |
commit | 4c62f9e6bf163d9dadd19c73cf10a4d33b6c61ae (patch) | |
tree | b683861171765f4573e833f06ceb748c09c6facf /src | |
parent | 9488f42b8190c92b6328697cbe84faad71647675 (diff) | |
download | pfsense-4c62f9e6bf163d9dadd19c73cf10a4d33b6c61ae.zip pfsense-4c62f9e6bf163d9dadd19c73cf10a4d33b6c61ae.tar.gz |
Fix DDNS domain for static map DHCP entries
If you specify DDNS Domain in a DHCP static map entry, it does not make its way through to dhcpd.conf
This is because the var name $pdnscfg is wrong from an old copy-paste that first made this code.
(cherry picked from commit a5a55231770e548898b6b1c18146cc0c6631c5c6)
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/services.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 6887c86..52ee95f 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -1078,9 +1078,9 @@ EOD; if (isset($sm['ddnsupdate'])) { if (($sm['ddnsdomain'] <> "") && ($sm['ddnsdomain'] != $dhcpifconf['ddnsdomain'])) { - $pdnscfg .= " ddns-domainname \"{$sm['ddnsdomain']}\";\n"; + $smdnscfg .= " ddns-domainname \"{$sm['ddnsdomain']}\";\n"; } - $pdnscfg .= " ddns-update-style interim;\n"; + $smdnscfg .= " ddns-update-style interim;\n"; } if (is_array($sm['dnsserver']) && ($sm['dnsserver'][0]) && ($sm['dnsserver'][0] != $dhcpifconf['dnsserver'][0])) { |