From 4f18a732390d7e4c72c61ac2df4a26d1f2ee6ad7 Mon Sep 17 00:00:00 2001
From: ValdikSS <iam@valdikss.org.ru>
Date: Thu, 31 Mar 2022 12:15:40 +0300
Subject: [PATCH] Print correct set-ttl/auto-ttl mode in the status

---
 src/goodbyedpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c
index 46edaad..7f54e9e 100644
--- a/src/goodbyedpi.c
+++ b/src/goodbyedpi.c
@@ -987,7 +987,7 @@ int main(int argc, char *argv[]) {
            do_dnsv4_redirect,                  /* 13 */
            do_dnsv6_redirect,                  /* 14 */
            do_allow_no_sni,                    /* 15 */
-           ttl_of_fake_packet ? "fixed" : (do_auto_ttl ? "auto" : "disabled"),  /* 16 */
+           do_auto_ttl ? "auto" : (do_fake_packet ? "fixed" : "disabled"),  /* 16 */
                ttl_of_fake_packet, do_auto_ttl ? auto_ttl_1 : 0, do_auto_ttl ? auto_ttl_2 : 0,
                do_auto_ttl ? auto_ttl_max : 0, ttl_min_nhops,
            do_wrong_chksum, /* 17 */