Browse Source

Fix: dhcpcd default-route status check

master
billz 3 weeks ago
parent
commit
b1da175ea7
  1. 2
      ajax/networking/get_netcfg.php

2
ajax/networking/get_netcfg.php

@ -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…
Cancel
Save