mirror of
https://github.com/bol-van/zapret.git
synced 2026-10-29 06:12:06 +00:00
nfqws: fix breaking tcp if ts fooling is enabled but no timestamps present
This commit is contained in:
1 parent
75d2f1195d
commit
76764ad6b0
2 files changed
+5
-1
No files matched your search
@@ -591,3 +591,7 @@ blockcheck: fix tpws test regression
|
||||
|
||||
nfqws,tpws: memleak fix
|
||||
mdig: --eagain, --eagain-delay
|
||||
|
||||
73.8
|
||||
|
||||
nfqws: fix breaking tcp if ts fooling is enabled but no timestamps present
|
||||
+1
-1
@@ -192,7 +192,7 @@ static uint16_t tcpopt_len(bool sack, bool mss, uint32_t fooling, const uint32_t
|
||||
if (sack) t+=2;
|
||||
if (mss) t+=4;
|
||||
if (fooling & FOOL_MD5SIG) t+=18;
|
||||
if ((fooling & FOOL_TS) || timestamps) t+=10;
|
||||
if (timestamps) t+=10;
|
||||
if (scale_factor!=SCALE_NONE) t+=3;
|
||||
return (t+3)&~3;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user