mirror of
https://github.com/bol-van/zapret.git
synced 2026-01-27 04:40:32 +03:00
nfqws: fix breaking tcp if ts fooling is enabled but no timestamps present
This commit is contained in:
@@ -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