mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Fix: dhcpcd default-route status check
This commit is contained in:
		@@ -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);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user