When the uplink has a native global IPv6 address and the new setting
"IPv6 к серверу первым" (on by default) is on, the app connects to the
VPN server over IPv6 first and falls back to IPv4 quickly. This helps
when only the server's IPv4 address is blocked on the path.
- sing-box (core patch address-family-memory, same Go package as the
Android patch 0020): remember per server name which address family
last worked, start the happy-eyeballs race on it, reset on network
change. UDP sockets keep IPv4 first until IPv6 has worked.
- Planner: prefer_ipv6 on the proxy server resolver and a TCP-only
resolve rule in hybrid mode (Xray dials through sing-box).
- Hysteria2: pin IPv6 first, re-pin to IPv4 when the server does not
authenticate within 4 s, remember the outcome.
- Latency probe: Xray probes of dual-stack servers no longer pick a
random family (failed half the time on hosts without IPv6).
- WireGuard/AWG unchanged (follow-up).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>