mirror of
https://github.com/go-gost/x.git
synced 2026-10-20 00:17:32 +00:00
TunnelProvider becomes OpenTunnelStream: OpenTunnel authorizes the tunnel and issues a single-use id, the Tunnel stream carries the data. The new x/p2p/streamconn conn wraps the stream as a net.Conn with real Set*Deadline support (bounded Recv pump, idempotent Close, framed mode for udp). The tunnel base dialer collapses to the stream; its failure path closes the conn nil-safely instead of leaking.