From c2f6c70044e7bf485e9aafd92b6e28a219ff656b Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 2 Oct 2018 13:14:32 +0300 Subject: [PATCH] #769 Fixed regression with colors. --- src/net/Network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/Network.cpp b/src/net/Network.cpp index 703e0ccf..828203a1 100644 --- a/src/net/Network.cpp +++ b/src/net/Network.cpp @@ -108,7 +108,7 @@ void Network::onActive(IStrategy *strategy, Client *client) const char *fingerprint = client->tlsFingerprint(); if (fingerprint != nullptr) { - LOG_INFO("\x1B[1;30mfingerprint (SHA-256): \"%s\"", fingerprint); + LOG_INFO("%sfingerprint (SHA-256): \"%s\"", isColors() ? "\x1B[1;30m" : "", fingerprint); } }