From 6ee4101f582e55de1ff939029e3b9cfe6f04462b Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Mon, 21 Mar 2022 14:08:02 +0300 Subject: [PATCH] Fix --set-ttl when used with --min-ttl --- src/goodbyedpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index cfa2ac82..76f50614 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -119,8 +119,8 @@ WINSOCK_API_LINKAGE INT WSAAPI inet_pton(INT Family, LPCSTR pStringBuf, PVOID pA } \ else if (ttl_min_nhops) { \ /* If not Auto TTL mode but --min-ttl is set */ \ - if (tcp_get_auto_ttl(tcp_conn_info.ttl, 0, 0, ttl_min_nhops, 0)) { \ - /* Send only if nhops > min_ttl */ \ + if (!tcp_get_auto_ttl(tcp_conn_info.ttl, 0, 0, ttl_min_nhops, 0)) { \ + /* Send only if nhops >= min_ttl */ \ should_send_fake = 0; \ } \ } \