mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-20 08:14:24 +00:00
Fix tls_fragment treating empty write as first packet
This commit is contained in:
@@ -41,7 +41,7 @@ func NewConn(conn net.Conn, ctx context.Context, splitPacket bool, splitRecord b
|
||||
}
|
||||
|
||||
func (c *Conn) Write(b []byte) (n int, err error) {
|
||||
if !c.firstPacketWritten {
|
||||
if !c.firstPacketWritten && len(b) > 0 {
|
||||
defer func() {
|
||||
c.firstPacketWritten = true
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user