Fix TLS conn cast for vision

This commit is contained in:
世界 2024-01-07 16:37:25 +08:00
parent b326e60998
commit 4c8a50a52b
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -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
}