From d61a9f802204bf274e7a00d8fe5c6f5bdc8e501c Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 26 Dec 2021 19:05:03 +0300 Subject: [PATCH] Handle only (default_ttl - 30) range in Auto TTL --- src/ttltrack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ttltrack.c b/src/ttltrack.c index 8b55232..ef12b5d 100644 --- a/src/ttltrack.c +++ b/src/ttltrack.c @@ -221,7 +221,7 @@ int tcp_handle_outgoing(uint32_t srcip[4], uint32_t dstip[4], int tcp_get_auto_ttl(const uint8_t ttl, const uint8_t decrease_for) { uint8_t ttl_of_fake_packet = 0; - if (ttl > 64 && ttl < 128) { + if (ttl > 98 && ttl < 128) { /* Safekeeping */ if (128 - ttl > decrease_for + 1) { ttl_of_fake_packet = 128 - ttl - decrease_for;