zapret-lib: fix oob urp=0 case in rawsend_dissect_segmented

This commit is contained in:
bol-van
2026-05-27 16:55:51 +03:00
parent fd4716da54
commit c90e0e9a7f
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -296,3 +296,4 @@ v0.9.4.3
0.9.5.3
* zapret-lib,zapret-antidpi: delay parameter in "send" desync function
* zapret-lib: fix oob urp=0 case in rawsend_dissect_segmented
+3 -1
View File
@@ -1250,7 +1250,9 @@ function rawsend_dissect_segmented(desync, dis, mss, options)
len = #payload - pos + 1
if len > max_data then len = max_data end
if oob then
if urp>=pos and urp<(pos+len)then
if urp==0 and pos==1 then
discopy.tcp.th_flags = bitor(discopy.tcp.th_flags, TH_URG)
elseif urp>=pos and urp<(pos+len) then
discopy.tcp.th_flags = bitor(discopy.tcp.th_flags, TH_URG)
discopy.tcp.th_urp = urp-pos+1
else