sing-box/common/badtls/conn.go

14 lines
181 B
Go
Raw Normal View History

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