mirror of
https://github.com/go-gost/x.git
synced 2026-10-20 00:17:32 +00:00
When xmetrics.IsEnabled() is false (no -api / no metrics.addr configured), WrapListener now returns the listener unchanged instead of wrapping every accepted connection in a metrics.serverConn. This allows bare *net.TCPConn to reach the forwarding layer, enabling future splice(2) optimization.