mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-31 17:04:23 +00:00
stratum: move log warning under opt_disable_client_reconnect clause.
This commit is contained in:
parent
01b3f70b63
commit
1f7b7ef26e
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…
x
Reference in New Issue
Block a user