mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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 commitbad77fc0ac) (cherry picked from commit50608d1586)
This commit is contained in:
parent
0f2d956be7
commit
d5ff0eb13b
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user