baldav/src-tauri/gen/android/app
4aiman b40775c9d0 BRouter: download segments from own mirror (LAN->WAN->upstream)
Per the user's decision, BalDav pulls .rd5 tiles from their own mirror instead
of brouter.de directly. downloadTile now tries, in order: LAN
http://192.168.1.1:88/brouter/segments4, WAN http://mirror.invalid:8088/... (via
the router port-forward), then brouter.de as a last resort; a base that 4xx's
or fails is skipped. The mirror is the Keenetic's existing uhttpd (:88, docroot
/opt/share/www) serving /opt/share/www/brouter/ off USB — always on.

Verified on device: the phone downloads a tile from the LAN mirror in <2s and
routes on it. Routing stays local (embedded engine); the PC RouteServer +
systemd unit are the user's separate remote endpoint, not used by BalDav.

Debug builds allow cleartext; release needs a network-security-config for the
mirror hosts. WAN port-forwards on the router are outward-facing (added
separately with confirmation).
2026-09-09 11:48:50 +03:00
..
libs BRouter: analysis + embed the offline routing engine (Stage 1) 2026-09-09 00:56:13 +03:00
src/main BRouter: download segments from own mirror (LAN->WAN->upstream) 2026-09-09 11:48:50 +03:00
build.gradle.kts BRouter: analysis + embed the offline routing engine (Stage 1) 2026-09-09 00:56:13 +03:00