Adjust uTLS wrapper

This commit is contained in:
Hellojack 2022-11-01 09:47:29 +00:00 committed by 世界
parent 6e8c4f6576
commit 10f213bf3d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -14,7 +14,6 @@ import (
E "github.com/sagernet/sing/common/exceptions" E "github.com/sagernet/sing/common/exceptions"
utls "github.com/refraction-networking/utls" utls "github.com/refraction-networking/utls"
"context"
) )
type utlsClientConfig struct { type utlsClientConfig struct {
@ -42,10 +41,6 @@ type utlsConnWrapper struct {
*utls.UConn *utls.UConn
} }
func (c *utlsConnWrapper) HandshakeContext(ctx context.Context) error {
return c.UConn.HandshakeContext(ctx)
}
func (c *utlsConnWrapper) ConnectionState() tls.ConnectionState { func (c *utlsConnWrapper) ConnectionState() tls.ConnectionState {
state := c.Conn.ConnectionState() state := c.Conn.ConnectionState()
return tls.ConnectionState{ return tls.ConnectionState{