Project

General

Profile

« Previous | Next » 

Revision 50608d15

Added by Jim Pingle almost 8 years ago

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 bad77fc0aca53e560710eaa75b3de198d7edb8f3)

View differences:

src/etc/inc/services.inc
1523 1523
					$dhhostname = str_replace(" ", "_", $sm['hostname']);
1524 1524
					$dhhostname = str_replace(".", "_", $dhhostname);
1525 1525
					$dhcpdv6conf .= "	option host-name {$dhhostname};\n";
1526
					if (isset($dhcpv6ifconf['ddnsupdate']) &&
1527
					    isset($dhcpv6ifconf['ddnsforcehostname'])) {
1528
						$dhcpdv6conf .= "	ddns-hostname \"{$dhhostname}\";\n";
1529
					}
1526 1530
				}
1527 1531
				if ($sm['filename']) {
1528 1532
					$dhcpdv6conf .= "	filename \"{$sm['filename']}\";\n";

Also available in: Unified diff