diff options
author | Phil Davis <phil.davis@inf.org> | 2016-08-16 22:48:26 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-16 22:48:26 +0930 |
commit | a5a55231770e548898b6b1c18146cc0c6631c5c6 (patch) | |
tree | 58d740cbcf4eba5b92e15d155a7c39a870506ae0 /src/etc/inc/services.inc | |
parent | 1d2eda73bde607d2d92ac10edf2855403c391625 (diff) | |
download | pfsense-a5a55231770e548898b6b1c18146cc0c6631c5c6.zip pfsense-a5a55231770e548898b6b1c18146cc0c6631c5c6.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.
Diffstat (limited to 'src/etc/inc/services.inc')
-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 152eddc..542ccc7 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -1046,9 +1046,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])) { |