mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-11 17:47:20 +10:00
Improve compatibility for kTLS
This commit is contained in:
@@ -26,7 +26,7 @@ const (
|
||||
|
||||
var CRLF = []byte{'\r', '\n'}
|
||||
|
||||
var _ N.EarlyConn = (*ClientConn)(nil)
|
||||
var _ N.EarlyWriter = (*ClientConn)(nil)
|
||||
|
||||
type ClientConn struct {
|
||||
N.ExtendedConn
|
||||
@@ -43,7 +43,7 @@ func NewClientConn(conn net.Conn, key [KeyLength]byte, destination M.Socksaddr)
|
||||
}
|
||||
}
|
||||
|
||||
func (c *ClientConn) NeedHandshake() bool {
|
||||
func (c *ClientConn) NeedHandshakeForWrite() bool {
|
||||
return !c.headerWritten
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user