Browse Source

Disallow passthroughs on nodes and remote servers as well.

master
Con Kolivas 8 years ago
parent
commit
f40ea70290
  1. 4
      src/stratifier.c

4
src/stratifier.c

@ -6465,8 +6465,8 @@ static void parse_method(ckpool_t *ckp, sdata_t *sdata, stratum_instance_t *clie
if (unlikely(cmdmatch(method, "mining.passthrough"))) {
char buf[256];
if (ckp->proxy) {
LOGNOTICE("Dropping client %s %s trying to connect as passthrough on proxy server %d",
if (ckp->proxy || ckp->node || ckp->remote) {
LOGNOTICE("Dropping client %s %s trying to connect as passthrough on unsupported server %d",
client->identity, client->address, client->server);
connector_drop_client(ckp, client_id);
drop_client(ckp, sdata, client_id);

Loading…
Cancel
Save