If the user chose to have DDNS Hostnames forced, respect that in the backend code for static map IPv6 hosts. Fixes #7324

This commit is contained in:
jim-p 2017-08-21 11:37:07 -04:00
parent e48f041833
commit bad77fc0ac

View File

@ -1523,6 +1523,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";