From 1b334516652cf448392eae10220ed04ea9df6edb Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Thu, 16 Apr 2026 12:24:14 +0200 Subject: [PATCH] Fix misleading TLS handshake error logging The log message on TLS handshake errors always stated that a client handshake failed, even if if the connection was acting as the server. The commit changes it so that the actual role is taken into account. --- lib/remote/apilistener.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index e2503601a..aa13eaf56 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -743,7 +743,8 @@ void ApiListener::NewClientHandlerInternal( } Log(LogCritical, "ApiListener") - << "Client TLS handshake failed (" << conninfo << "): " << ec.message(); + << (role == RoleClient ? "Client" : "Server") + << " TLS handshake failed (" << conninfo << "): " << ec.message(); return; }