mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
auto ttl alog minor fix
This commit is contained in:
parent
1222eb96f5
commit
7ba1c28f94
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1195,9 +1195,7 @@ uint8_t autottl_guess(uint8_t ttl, const autottl *attl)
|
||||
|
||||
path = orig - ttl;
|
||||
|
||||
if (path <=attl->delta) return 0;
|
||||
|
||||
fake = path - attl->delta;
|
||||
fake = path > attl->delta ? path - attl->delta : attl->min;
|
||||
if (fake<attl->min) fake=attl->min;
|
||||
else if (fake>attl->max) fake=attl->max;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user