Skip to content

Commit

Permalink
Pass $upstreamServers to template, resolves #994 thx @SephGER
Browse files Browse the repository at this point in the history
  • Loading branch information
billz committed Sep 7, 2021
1 parent 48feef8 commit c241040
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/dhcp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -63,6 +64,7 @@ function DisplayDHCPConfig()
"ap_iface",
"conf",
"hosts",
"upstreamServers",
"interfaces",
"leases"
)
Expand Down

0 comments on commit c241040

Please sign in to comment.