mirror of
https://github.com/bol-van/zapret2.git
synced 2026-05-27 18:50:47 +04:00
zapret-lib: fix oob urp=0 case in rawsend_dissect_segmented
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user