nfqws: return autottl path len check

This commit is contained in:
bol-van 2025-05-03 12:28:49 +03:00
parent 5cc888cd2c
commit 43173e6396
2 changed files with 2 additions and 4 deletions

View File

@ -489,4 +489,3 @@ nfqws: --dpi-desync-fake-tls=! means default tls fake
nfqws: --dup*
nfqws: --orig*
nfqws: autottl cache
nfqws: autottl disable path length check

View File

@ -1863,9 +1863,8 @@ uint8_t autottl_eval(uint8_t hop_count, const autottl *attl)
else if (d>attl->max) fake=attl->max;
else fake=(uint8_t)d;
// path length check disabled
// if (attl->delta<0 && fake>=hop_count || attl->delta>=0 && fake<hop_count)
// return 0;
if (attl->delta<0 && fake>=hop_count || attl->delta>=0 && fake<hop_count)
return 0;
return fake;
}