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:
chrox
2015-04-15 13:34:13 +08:00
parent 1dc174fa04
commit b1867def37

View File

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