Repository navigation
Fixes LAN access and the mobile QR code opening on an unreachable address when a VPN is up.
- Pick a real LAN address (192.168.x.x, 10.x.x.x, 172.16-31.x.x) for the browser and the QR code. The address of the route to the internet was used before, which under a VPN is the tunnel's 100.64.x.x address: a phone on the Wi-Fi cannot reach it, and most VPN clients refuse it even on the machine itself.
- Keep the tunnel address as a last resort for machines that are only reachable through one.
- Add regression coverage, including a replay of the VPN case.
Verified with all 65 automated tests and in Sublime Text with a VPN up: the browser now opens on the LAN address and loads.