summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-08-21 11:37:07 -0400
committerjim-p <jimp@pfsense.org>2017-08-21 11:37:07 -0400
commitbad77fc0aca53e560710eaa75b3de198d7edb8f3 (patch)
tree99ffa6218ff2e4a03a759f6bdff4c8bcace846f3 /src
parente48f041833cea3d8cf0ca90368dbd29b19161812 (diff)
downloadpfsense-bad77fc0aca53e560710eaa75b3de198d7edb8f3.zip
pfsense-bad77fc0aca53e560710eaa75b3de198d7edb8f3.tar.gz
If the user chose to have DDNS Hostnames forced, respect that in the backend code for static map IPv6 hosts. Fixes #7324
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/services.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc
index 41ec68c..79a12db 100644
--- a/src/etc/inc/services.inc
+++ b/src/etc/inc/services.inc
@@ -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";
OpenPOWER on IntegriCloud