mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Check dns for www.example.com when geting network status
Because sometimes dns won't return for www.google.com in China, ridiculous enough, right?
This commit is contained in:
@@ -82,7 +82,7 @@ end
|
||||
|
||||
function NetworkMgr:getWifiStatus()
|
||||
local socket = require("socket")
|
||||
return socket.dns.toip("www.google.com") ~= nil
|
||||
return socket.dns.toip("www.example.com") ~= nil
|
||||
end
|
||||
|
||||
function NetworkMgr:setHTTPProxy(proxy)
|
||||
|
||||
Reference in New Issue
Block a user