From 7c1747a3aa2c5a6a49bf31e11e0058e66bc1ed6a Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Fri, 8 Jan 2016 22:55:52 -0600 Subject: Fix DDNS dhcpd(v6).conf config generation issues. Ticket #5603 --- src/etc/inc/services.inc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 2e58cce..7eec2ff 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -1067,6 +1067,9 @@ EOD; if ($newzone['domain-name']) { if ($need_ddns_updates) { $newzone['dns-servers'] = array($dhcpifconf['ddnsdomainprimary']); + $newzone['ddnsdomainkeyname'] = $dhcpifconf['ddnsdomainkeyname']; + $newzone['ddnsdomainkey'] = $dhcpifconf['ddnsdomainkey']; + $dhcpdconf .= dhcpdkey($dhcpifconf); } $ddns_zones[] = $newzone; } @@ -1076,8 +1079,7 @@ EOD; $dhcpdconf .= "ddns-update-style interim;\n"; $dhcpdconf .= "update-static-leases on;\n"; - $dhcpdconf .= dhcpdkey($dhcpifconf); - $dhcpdconf .= dhcpdzones($ddns_zones, $dhcpifconf); + $dhcpdconf .= dhcpdzones($ddns_zones); } /* write dhcpd.conf */ @@ -1122,7 +1124,7 @@ function dhcpdkey($dhcpifconf) { return $dhcpdconf; } -function dhcpdzones($ddns_zones, $dhcpifconf) { +function dhcpdzones($ddns_zones) { $dhcpdconf = ""; if (is_array($ddns_zones)) { @@ -1151,8 +1153,8 @@ function dhcpdzones($ddns_zones, $dhcpifconf) { if (is_ipaddrv4($secondary)) { $dhcpdconf .= " secondary {$secondary};\n"; } - if ($dhcpifconf['ddnsdomainkeyname'] <> "" && $dhcpifconf['ddnsdomainkey'] <> "") { - $dhcpdconf .= " key {$dhcpifconf['ddnsdomainkeyname']};\n"; + if ($zone['ddnsdomainkeyname'] <> "" && $zone['ddnsdomainkey'] <> "") { + $dhcpdconf .= " key {$zone['ddnsdomainkeyname']};\n"; } $dhcpdconf .= "}\n"; $added_zones[] = $zone['domain-name']; @@ -1163,8 +1165,8 @@ function dhcpdzones($ddns_zones, $dhcpifconf) { if (is_ipaddrv4($secondary)) { $dhcpdconf .= " secondary {$secondary};\n"; } - if ($dhcpifconf['ddnsdomainkeyname'] <> "" && $dhcpifconf['ddnsdomainkey'] <> "") { - $dhcpdconf .= " key {$dhcpifconf['ddnsdomainkeyname']};\n"; + if ($zone['ddnsdomainkeyname'] <> "" && $zone['ddnsdomainkey'] <> "") { + $dhcpdconf .= " key {$zone['ddnsdomainkeyname']};\n"; } $dhcpdconf .= "}\n"; $added_zones[] = $zone['ptr-domain']; @@ -1377,6 +1379,8 @@ EOD; $newzone = array(); $newzone['domain-name'] = $dhcpv6ifconf['domain']; $newzone['dns-servers'][] = $dhcpv6ifconf['ddnsdomainprimary']; + $newzone['ddnsdomainkeyname'] = $dhcpv6ifconf['ddnsdomainkeyname']; + $newzone['ddnsdomainkey'] = $dhcpv6ifconf['ddnsdomainkey']; $ddns_zones[] = $newzone; } @@ -1485,7 +1489,7 @@ EOD; if ($dhcpv6ifconf['domain']) { $dhcpdv6conf .= dhcpdkey($dhcpv6ifconf); - $dhcpdv6conf .= dhcpdzones($ddns_zones, $dhcpv6ifconf); + $dhcpdv6conf .= dhcpdzones($ddns_zones); } if ($config['dhcpdv6'][$dhcpv6if]['ramode'] <> "unmanaged" && isset($config['interfaces'][$dhcpv6if]['enable'])) { -- cgit v1.1 From b9bc38c1d4728398cb14bf4affaa32bfb1b683e2 Mon Sep 17 00:00:00 2001 From: NOYB Date: Sat, 9 Jan 2016 01:18:17 -0800 Subject: HTML Compliance - Firewall / Traffic Shaper / Limiter Bad value button for attribute type on element a: Subtype missing. (only used if href attribute set) The font element is obsolete. Use CSS instead. --- src/etc/inc/shaper.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc index 3d48490..0294154 100644 --- a/src/etc/inc/shaper.inc +++ b/src/etc/inc/shaper.inc @@ -3847,13 +3847,13 @@ EOD; $form .= ""; $form .= ""; $form .= ''; - $form .= '' . gettext('Remove') . ''; + $form .= '' . gettext('Remove') . ''; $form .= ""; } } $form .= "
"; - $form .= ''; + $form .= ''; $form .= gettext("Add another schedule") . ""; return($form); @@ -3953,7 +3953,7 @@ EOD; null, $mask['bitsv6'], array_combine(range(128, 1, -1), range(128, 1, -1)) - ))->setHelp('IPV6 mask bits' . '
' . 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?'); + ))->setHelp('IPV6 mask bits' . '
' . 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?'); $section->add($group); @@ -4257,7 +4257,7 @@ class dnqueue_class extends dummynet_class { null, $mask['bitsv6'], array_combine(range(128, 1, -1), range(128, 1, -1)) - ))->setHelp('IPV6 mask bits' . '
' . 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?'); + ))->setHelp('IPV6 mask bits' . '
' . 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?'); $section->add($group); -- cgit v1.1