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
This commit is contained in:
parent
e48f041833
commit
bad77fc0ac
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user