소스 검색

Adjust uTLS wrapper

Hellojack 3 년 전
부모
커밋
10f213bf3d
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      common/tls/utls_client.go

+ 0 - 5
common/tls/utls_client.go

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