mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
Adjust uTLS wrapper
This commit is contained in:
parent
6e8c4f6576
commit
10f213bf3d
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue