Browse Source

Handle only (default_ttl - 30) range in Auto TTL

windivert2
ValdikSS 3 years ago
parent
commit
d61a9f8022
  1. 2
      src/ttltrack.c

2
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;

Loading…
Cancel
Save