1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-05 01:00:23 +08:00

fix: tls conn nil pointer

This commit is contained in:
源文雨
2024-04-15 22:17:49 +09:00
parent 44fae3a819
commit e65650a52c

View File

@@ -9,5 +9,5 @@ import (
func Use(conn *tls.Conn) *tls.Conn {
trsConn := (*trsconn)(unsafe.Pointer(conn))
trsConn.handshakeFn = trsConn.clientHandshake
return conn
return (*tls.Conn)(unsafe.Pointer(trsConn))
}