sing-box/common/badtls/conn.go

14 lines
181 B
Go
Raw Normal View History

2022-09-30 03:27:18 +00:00
package badtls
import (
"context"
"crypto/tls"
"net"
)
type TLSConn interface {
net.Conn
HandshakeContext(ctx context.Context) error
ConnectionState() tls.ConnectionState
}