mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-06 10:40:48 +05:00
nfqws: return autottl path len check
This commit is contained in:
parent
5cc888cd2c
commit
43173e6396
@ -489,4 +489,3 @@ nfqws: --dpi-desync-fake-tls=! means default tls fake
|
|||||||
nfqws: --dup*
|
nfqws: --dup*
|
||||||
nfqws: --orig*
|
nfqws: --orig*
|
||||||
nfqws: autottl cache
|
nfqws: autottl cache
|
||||||
nfqws: autottl disable path length check
|
|
||||||
|
@ -1863,9 +1863,8 @@ uint8_t autottl_eval(uint8_t hop_count, const autottl *attl)
|
|||||||
else if (d>attl->max) fake=attl->max;
|
else if (d>attl->max) fake=attl->max;
|
||||||
else fake=(uint8_t)d;
|
else fake=(uint8_t)d;
|
||||||
|
|
||||||
// path length check disabled
|
if (attl->delta<0 && fake>=hop_count || attl->delta>=0 && fake<hop_count)
|
||||||
// if (attl->delta<0 && fake>=hop_count || attl->delta>=0 && fake<hop_count)
|
return 0;
|
||||||
// return 0;
|
|
||||||
|
|
||||||
return fake;
|
return fake;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user