diff --git a/SWUpdateGUI.lua b/SWUpdateGUI.lua index 17bf1cc..5aad9de 100755 --- a/SWUpdateGUI.lua +++ b/SWUpdateGUI.lua @@ -184,8 +184,10 @@ end function loadnetinterfaces() local runintf = sw:ipv4() local gw = getgatewayip() - - runintf[INTF_GATEWAY] = gw .. " 0.0.0.0" + + if gw then + runintf[INTF_GATEWAY] = gw .. " 0.0.0.0" + end if NETWORK_INTERFACES then for cnt=1, #NETWORK_INTERFACES do