diff --git a/transport/vless/vision.go b/transport/vless/vision.go index 6919ce81..5ee2d0df 100644 --- a/transport/vless/vision.go +++ b/transport/vless/vision.go @@ -24,7 +24,7 @@ var tlsRegistry []func(conn net.Conn) (loaded bool, netConn net.Conn, reflectTyp func init() { tlsRegistry = append(tlsRegistry, func(conn net.Conn) (loaded bool, netConn net.Conn, reflectType reflect.Type, reflectPointer uintptr) { - tlsConn, loaded := conn.(*tls.Conn) + tlsConn, loaded := common.Cast[*tls.Conn](conn) if !loaded { return }