mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-27 00:01:44 +00:00
Avoid panic
https://github.com/XTLS/Xray-core/pull/5270#issuecomment-3483155727
This commit is contained in:
@@ -176,6 +176,8 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
ob.Conn = conn // for Vision's pre-connect
|
||||
|
||||
iConn := conn
|
||||
if statConn, ok := iConn.(*stat.CounterConnection); ok {
|
||||
iConn = statConn.Connection
|
||||
|
||||
Reference in New Issue
Block a user