From f3254ea1706d51de153ef4a2ce109bf770edacb0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 7 Oct 2014 14:18:53 +1100 Subject: [PATCH] Check for addrauth as well in send_recv_auth --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index d2f6b5aa..bd82490e 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1609,7 +1609,8 @@ static int send_recv_auth(stratum_instance_t *client) json_get_int(&worker->mindiff, val, "difficultydefault"); client->suggest_diff = worker->mindiff; } - if (!safecmp(response, "ok.authorise") && secondaryuserid) { + if (secondaryuserid && (!safecmp(response, "ok.authorise") || + !safecmp(response, "ok.addrauth"))) { if (!user_instance->secondaryuserid) user_instance->secondaryuserid = secondaryuserid; else