Fix: dhcpcd default-route status check

This commit is contained in:
billz 2022-01-02 19:31:07 +00:00
parent 02ec6b03c6
commit b1da175ea7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}