1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-31 08:54:19 +00:00

stratum: move log warning under opt_disable_client_reconnect clause.

This commit is contained in:
Noel Maersk 2014-03-24 15:25:31 +02:00
parent 01b3f70b63
commit 1f7b7ef26e

10
util.c
View File

@ -1676,13 +1676,13 @@ static void __suspend_stratum(struct pool *pool)
static bool parse_reconnect(struct pool *pool, json_t *val)
{
char *sockaddr_url, *stratum_port, *tmp;
if (opt_disable_client_reconnect)
return false;
applog(LOG_ERR, "WARNING: POTENTIAL CLIENT.EXPLOIT!");
char *url, *port, address[256];
if (opt_disable_client_reconnect) {
applog(LOG_WARNING, "Stratum client.reconnect forbidden, aborting.");
return false;
}
memset(address, 0, 255);
url = (char *)json_string_value(json_array_get(val, 0));
if (!url)