You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui/network
Tomas Janousek 4fa6783dbb NetworkMgr: Use cheaper/simpler hasDefaultRoute in isOnline
Device:getDefaultRoute parses /proc/net/route and converts the hex
addresses to textual IP addresses, but in `isOnline` we don't care what
address the gateway actually has, we only care about whether we have a
default route into the Internet.

This provides a simpler alternative that does the equivalent of
"ip route get 203.0.113.1 || ip route get 2001:db8::1" (note that it
does support IPv6-only connectivity as opposed to
Device:getDefaultRoute) and returns true if we have a route.

Inspired by https://github.com/pavel-odintsov/get_default_outgoing_ip_linux
2 months ago
..
manager.lua NetworkMgr: Use cheaper/simpler hasDefaultRoute in isOnline 2 months ago
networklistener.lua NetworkListener: Only disable Wi-Fi on suspend on hasWifiManager platforms 10 months ago
wpa_supplicant.lua Fix connection bug with non-ASCII SSIDs in wpa_supplicant (#11089) 7 months ago