diff options
author | jim-p <jimp@pfsense.org> | 2017-08-21 11:37:07 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-08-21 11:38:27 -0400 |
commit | a8371977595f46d9ecf72ac48ad027cdbf1d55ff (patch) | |
tree | df1e1e75f732cb2dfeaca6818228be8067a96e60 | |
parent | 98638326106352bd8279b43b3f3578c2b1b35370 (diff) | |
download | pfsense-a8371977595f46d9ecf72ac48ad027cdbf1d55ff.zip pfsense-a8371977595f46d9ecf72ac48ad027cdbf1d55ff.tar.gz |
If the user chose to have DDNS Hostnames forced, respect that in the backend code for static map IPv6 hosts. Fixes #7324
(cherry picked from commit bad77fc0aca53e560710eaa75b3de198d7edb8f3)
(cherry picked from commit 50608d158646e32a612f845bcd0dfa91ce37d713)
(cherry picked from commit d5ff0eb13ba46310c203733a3ea3fb2ce7ce529e)
-rw-r--r-- | src/etc/inc/services.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 94e1ad8..edfbd68 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -1577,6 +1577,10 @@ EOD; $dhhostname = str_replace(" ", "_", $sm['hostname']); $dhhostname = str_replace(".", "_", $dhhostname); $dhcpdv6conf .= " option host-name {$dhhostname};\n"; + if (isset($dhcpv6ifconf['ddnsupdate']) && + isset($dhcpv6ifconf['ddnsforcehostname'])) { + $dhcpdv6conf .= " ddns-hostname \"{$dhhostname}\";\n"; + } } if ($sm['filename']) { $dhcpdv6conf .= " filename \"{$sm['filename']}\";\n"; |