Browse Source

stratum: move log warning under opt_disable_client_reconnect clause.

build-mingw
Noel Maersk 11 years ago
parent
commit
1f7b7ef26e
  1. 10
      util.c

10
util.c

@ -1676,13 +1676,13 @@ static void __suspend_stratum(struct pool *pool)
static bool parse_reconnect(struct pool *pool, json_t *val) static bool parse_reconnect(struct pool *pool, json_t *val)
{ {
char *sockaddr_url, *stratum_port, *tmp; 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]; char *url, *port, address[256];
if (opt_disable_client_reconnect) {
applog(LOG_WARNING, "Stratum client.reconnect forbidden, aborting.");
return false;
}
memset(address, 0, 255); memset(address, 0, 255);
url = (char *)json_string_value(json_array_get(val, 0)); url = (char *)json_string_value(json_array_get(val, 0));
if (!url) if (!url)

Loading…
Cancel
Save