Merge from upstream master: Pass $upstreamServers to template

This commit is contained in:
billz 2021-09-07 17:05:58 +01:00
parent 890aaaabc9
commit a634e0dfaa

View file

@ -52,6 +52,7 @@ function DisplayDHCPConfig()
exec('cat '. RASPI_DNSMASQ_PREFIX.$ap_iface.'.conf', $return);
$conf = array_merge(ParseConfig($return));
$hosts = (array)$conf['dhcp-host'];
$upstreamServers = (array)$conf['server'];
exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
exec('cat ' . RASPI_DNSMASQ_LEASES, $leases);
@ -63,6 +64,7 @@ function DisplayDHCPConfig()
"ap_iface",
"conf",
"hosts",
"upstreamServers",
"interfaces",
"leases"
)