NetworkManager: Bypass isOnline on !hasWifiToggle platforms (#10697)

Followup to #10669, fix #10694
reviewable/pr10700/r1
NiLuJe 10 months ago committed by GitHub
parent 3bec20fc25
commit dacc3c2f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -396,6 +396,11 @@ function NetworkMgr:afterWifiAction(callback)
end
function NetworkMgr:isOnline()
-- For the same reasons as isWifiOn and isConnected above, bypass this on !hasWifiToggle platforms.
if not Device:hasWifiToggle() then
return true
end
local socket = require("socket")
-- Microsoft uses `dns.msftncsi.com` for Windows, see
-- <https://technet.microsoft.com/en-us/library/ee126135#BKMK_How> for

Loading…
Cancel
Save