From a647842602ed43f0f0c079da14f31546a87ebab9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 29 Dec 2015 23:59:34 +1100 Subject: [PATCH] Don't drop node clients for not being authorised --- src/stratifier.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 666c292e..03593652 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1479,7 +1479,7 @@ static void reconnect_clients(sdata_t *sdata) continue; if (!client->authorised) continue; - /* Is this client boudn to a dead proxy? */ + /* Is this client bound to a dead proxy? */ if (!client->reconnect) { /* This client is bound to a user proxy */ if (client->proxy->userid) @@ -2192,6 +2192,10 @@ static void stratum_broadcast(sdata_t *sdata, json_t *val) connector_test_client(ckp, client->id); continue; } + + if (client->node) + continue; + /* Test for clients that haven't authed in over a minute and drop them */ if (!client->authorised) { if (now_t > client->start_time + 60) {