Merge pull request #3196 from SChernykh/dev

Show IP address for failed connections
This commit is contained in:
xmrig 2023-01-11 17:02:15 +07:00 committed by GitHub
commit 44642643f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1018,7 +1018,7 @@ void xmrig::Client::onConnect(uv_connect_t *req, int status)
if (status < 0) {
if (!client->isQuiet()) {
LOG_ERR("%s " RED("connect error: ") RED_BOLD("\"%s\""), client->tag(), uv_strerror(status));
LOG_ERR("%s %s " RED("connect error: ") RED_BOLD("\"%s\""), client->tag(), client->ip().data(), uv_strerror(status));
}
if (client->state() == ReconnectingState || client->state() == ClosingState) {