fix(app): the proxy refuses IPv6 outside global unicast and its stop closes open tunnels
- IPv6 counts as public only in 2000::/3 (without 2001::/23, documentation and 6to4), so site local fec0::/10 and IPv4-compatible addresses are refused; the collector uses the same rule - every proxy connection is a task of one set: a stop ends the open CONNECT tunnels and waits until their sockets are gone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -252,13 +252,16 @@ it in the background (headless); the virtual monitor for screen sharing comes ne
|
||||
(`--proxy-server`, and `--proxy-bypass-list=<-loopback>` so not even loopback is direct; QUIC off,
|
||||
WebRTC only through the proxy). The proxy takes `CONNECT host:port` (HTTPS, WebSocket) and plain
|
||||
HTTP requests with an absolute `http://` address. It resolves the name once (at most 10 s), refuses
|
||||
with 403 unless every address is public (not loopback, private, link-local, CGNAT, documentation,
|
||||
benchmarking, multicast, reserved or unspecified, also inside IPv4-mapped IPv6), and connects
|
||||
with 403 unless every address is public (IPv4: not loopback, private, link-local, CGNAT,
|
||||
documentation, benchmarking, multicast, reserved or unspecified; IPv6: only global unicast
|
||||
`2000::/3` without `2001::/23`, documentation and 6to4, and an IPv4-mapped address as its IPv4),
|
||||
and connects
|
||||
only to those addresses, so Chrome can never reach the PC or the local network. Plain HTTP goes
|
||||
on with `Connection: close` and without proxy headers. A request it cannot read is a 400. It logs
|
||||
no host or address, only that it refused one.
|
||||
- Stop: CDP `Browser.close`, then up to 5 s for the process to end, else it and the processes it
|
||||
started are killed. The services' stop ends the proxy too.
|
||||
started are killed. Then the proxy stops taking connections, closes every open one (tunnels
|
||||
included) and the stop waits until they are gone.
|
||||
- Dashboard `browser`: `{state, note}` with `state` off, ready, failed (the note says why) or exited
|
||||
(it ended on its own).
|
||||
- Linux (development only): Ubuntu's AppArmor refuses Chrome's sandbox; `JARVIS_CHROME_NO_SANDBOX=1`
|
||||
|
||||
Reference in New Issue
Block a user