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
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
..
apps Do `flashui` refresh for first display of History page (#11603) 2 months ago
device PocketBook: remove unused `color_saturation` parameter (#11597) 2 months ago
document ReaderTypeset: tweak Style> menu logic and defaults 3 months ago
ui NetworkMgr: Use cheaper/simpler hasDefaultRoute in isOnline 2 months ago
cache.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
cacheitem.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
configurable.lua copt/kopt options: deduplicate some defaults (#10893) 9 months ago
datetime.lua Finished books: freeze history timestamp and statistics (#10968) 8 months ago
dbg.lua UI: Add a verbose debug logging checkbox next to "Report a bug" 5 months ago
depgraph.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
device.lua Truly silence the attempt at loading SDL2 3 years ago
dispatcher.lua ReaderFooter: chapter progress bar (#11505) 3 months ago
docsettings.lua DocSettings: check legacy history location only once (#11439) 4 months ago
dump.lua Logger: Use serpent instead of dump (#9588) 2 years ago
fontlist.lua Decrease fonts memory use (#10618) 11 months ago
gettext.lua Make luacheck >= 0.26 happy (#9174) 2 years ago
httpclient.lua build: enforce luacheck in travis build 8 years ago
languagesupport.lua getProps: centralize 2 (#10837) 9 months ago
logger.lua Cleanup various varargs shenanigans (#9624) 2 years ago
luadata.lua DocSettings: Fix candidates sorting (#9607) 2 years ago
luadefaults.lua writeToFile: centralize (#11012) 8 months ago
luasettings.lua writeToFile: centralize (#11012) 8 months ago
luxl.lua [fix] Don't break OPDS parsing on HR tags (#5949) 4 years ago
optmath.lua [autosuspend, plugin] Switch to datetimewidget and provide default values (#8480) 3 years ago
persist.lua persist: fix possible leak on error (#10568) 12 months ago
pluginloader.lua Restart KOReader: add a ConfirmBox instead of a plain InfoMessage (#9853) 2 years ago
pluginshare.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
random.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
readcollection.lua File browser, Collection: improve group actions (#11178) 6 months ago
readhistory.lua Minimize DocSettings:open() calls (#11437) 4 months ago
socketutil.lua KOSync: Set sane socket timeouts properly (#10835) 10 months ago
sort.lua Misc: Natural sorting refactor (#10023) 1 year ago
userpatch.lua patch management 1 year ago
util.lua FileChooser collates: use "item.sort_percent" for sorting + extra `on-hold` handling (#11592) 2 months ago
version.lua Version log and (limited) notifications log (#10178) 1 year ago