mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Merge from upstream master: Pass $upstreamServers to template
This commit is contained in:
parent
890aaaabc9
commit
a634e0dfaa
@ -52,6 +52,7 @@ function DisplayDHCPConfig()
|
|||||||
exec('cat '. RASPI_DNSMASQ_PREFIX.$ap_iface.'.conf', $return);
|
exec('cat '. RASPI_DNSMASQ_PREFIX.$ap_iface.'.conf', $return);
|
||||||
$conf = array_merge(ParseConfig($return));
|
$conf = array_merge(ParseConfig($return));
|
||||||
$hosts = (array)$conf['dhcp-host'];
|
$hosts = (array)$conf['dhcp-host'];
|
||||||
|
$upstreamServers = (array)$conf['server'];
|
||||||
exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
|
exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
|
||||||
exec('cat ' . RASPI_DNSMASQ_LEASES, $leases);
|
exec('cat ' . RASPI_DNSMASQ_LEASES, $leases);
|
||||||
|
|
||||||
@ -63,6 +64,7 @@ function DisplayDHCPConfig()
|
|||||||
"ap_iface",
|
"ap_iface",
|
||||||
"conf",
|
"conf",
|
||||||
"hosts",
|
"hosts",
|
||||||
|
"upstreamServers",
|
||||||
"interfaces",
|
"interfaces",
|
||||||
"leases"
|
"leases"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user