|
|
@ -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) |
|
|
|