mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
Every core the service starts has outbound traffic counters on, and with them on xray wraps the underlay connection of a native QUIC outbound in a *stat.CounterConnection. That wrapper embeds net.Conn alone, so ReadFrom and WriteTo are hidden and hint/proxy/juicity and hint/proxy/tuic failed their net.PacketConn assertion before a single QUIC packet left: the node imported, and then every connection through it died on the spot. Unwrap the stats connection before the assertion. A QUIC server listens on UDP only, so the TCP dial the ping made to its port said nothing and every juicity, tuic and hysteria2 node read TIMEOUT. Keep the TCP attempt, and when it fails ask the same port over UDP with a QUIC long header carrying a reserved greased version: a QUIC server answers that with a Version Negotiation packet (RFC 9000 section 6), and the round trip of that answer is the latency. A node that answers neither probe is still TIMEOUT; the troubleshooting pages in the six locales describe that.