mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix: dhcpcd default-route status check
This commit is contained in:
parent
02ec6b03c6
commit
b1da175ea7
@ -52,7 +52,7 @@ if (isset($interface)) {
|
||||
$dhcpdata['StaticRouters'] = $static_routers[1];
|
||||
$dhcpdata['StaticDNS'] = $static_dns[1];
|
||||
$dhcpdata['FallbackEnabled'] = empty($fallback) ? false: true;
|
||||
$dhcpdata['DefaultRoute'] = empty($gateway) || $gateway[0] == "gateway";
|
||||
$dhcpdata['DefaultRoute'] = $gateway[0] == "gateway";
|
||||
|
||||
echo json_encode($dhcpdata);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user