From f40ea70290e188d822f340b4d9a356698212ad1f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 4 Jan 2017 18:51:18 +1100 Subject: [PATCH] Disallow passthroughs on nodes and remote servers as well. --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 2e1c336e..706b30a9 100644 --- a/src/stratifier.c +++ b/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);