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 bad77fc0ac)
(cherry picked from commit 50608d1586)
This commit is contained in:
jim-p 2017-08-21 11:37:07 -04:00
parent 0f2d956be7
commit d5ff0eb13b

View File

@ -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";