Skip to content

Commit 6ee4101

Browse files
committed
Fix --set-ttl when used with --min-ttl
1 parent f94a20d commit 6ee4101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goodbyedpi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ WINSOCK_API_LINKAGE INT WSAAPI inet_pton(INT Family, LPCSTR pStringBuf, PVOID pA
119119
} \
120120
else if (ttl_min_nhops) { \
121121
/* If not Auto TTL mode but --min-ttl is set */ \
122-
if (tcp_get_auto_ttl(tcp_conn_info.ttl, 0, 0, ttl_min_nhops, 0)) { \
123-
/* Send only if nhops > min_ttl */ \
122+
if (!tcp_get_auto_ttl(tcp_conn_info.ttl, 0, 0, ttl_min_nhops, 0)) { \
123+
/* Send only if nhops >= min_ttl */ \
124124
should_send_fake = 0; \
125125
} \
126126
} \

0 commit comments

Comments
 (0)