Skip to content

Commit 83424d2

Browse files
Restia-Ashbellnekohasekai
authored andcommitted
Fix TLS record fragment
1 parent c818858 commit 83424d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

common/tlsfragment/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (c *Conn) Write(b []byte) (n int, err error) {
9898
}
9999
}
100100
if c.splitRecord {
101-
_, err = c.tcpConn.Write(buffer.Bytes())
101+
_, err = c.Conn.Write(buffer.Bytes())
102102
if err != nil {
103103
return
104104
}

route/route.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ match:
452452
metadata.TLSFragment = true
453453
metadata.TLSFragmentFallbackDelay = routeOptions.TLSFragmentFallbackDelay
454454
}
455+
if routeOptions.TLSRecordFragment {
456+
metadata.TLSRecordFragment = true
457+
}
455458
}
456459
switch action := currentRule.Action().(type) {
457460
case *rule.RuleActionSniff:

0 commit comments

Comments
 (0)