From 92dfde8a3e5c448afc34fae49dd8d1f2c9d2f050 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:41:55 +0100 Subject: [PATCH] Stratum: fixed TLS display in `workers` command --- src/stratum_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratum_server.cpp b/src/stratum_server.cpp index f765306f..169fee5a 100644 --- a/src/stratum_server.cpp +++ b/src/stratum_server.cpp @@ -576,13 +576,13 @@ void StratumServer::show_workers() } #ifdef WITH_TLS - const bool is_tls = c->m_tls.is_empty(); + const bool is_tls = !c->m_tls.is_empty(); #else constexpr bool is_tls = false; #endif LOGINFO(0, log::pad_right(static_cast(c->m_addrString), addr_len + 8) - << (is_tls ? "no " : "yes ") + << (is_tls ? "yes " : "no ") << log::pad_right(log::Duration(cur_time - c->m_connectedTime), 20) << log::pad_right(diff, 20) << log::pad_right(log::Hashrate(c->m_autoDiff.lo / AUTO_DIFF_TARGET_TIME, m_autoDiff && (c->m_autoDiff != 0)), 15)