From c4a63d3f038ff45d4b00a1b0b5ac7eb6242e9044 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 18 Feb 2016 15:29:31 +0100 Subject: [PATCH] (legacy) missing ntpserver in post, services_dhcp.php --- src/www/services_dhcp.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php index e8da715c8..8fb7d5896 100644 --- a/src/www/services_dhcp.php +++ b/src/www/services_dhcp.php @@ -462,6 +462,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { if (!empty($pconfig['dns2'])) { $dhcpdconf['dnsserver'][] = $pconfig['dns2']; } + $dhcpdconf['ntpserver'] = []; + if (!empty($pconfig['ntp1'])) { + $dhcpdconf['ntpserver'][] = $pconfig['ntp1']; + } + if (!empty($pconfig['ntp2'])) { + $dhcpdconf['ntpserver'][] = $pconfig['ntp2']; + } // handle changes if (!isset($pool) && $act != "newpool") {