Browse Source

Change authentication response check from added to ok

master
Con Kolivas 11 years ago
parent
commit
14b965c67a
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -1185,7 +1185,7 @@ static bool send_recv_auth(stratum_instance_t *client)
LOGINFO("User %s Worker %s got auth response: %s suid: %s", LOGINFO("User %s Worker %s got auth response: %s suid: %s",
client->user_instance->username, client->workername, client->user_instance->username, client->workername,
response, secondaryuserid); response, secondaryuserid);
if (!strcmp(response, "added") && secondaryuserid) { if (!strcmp(response, "ok") && secondaryuserid) {
client->secondaryuserid = strdup(secondaryuserid); client->secondaryuserid = strdup(secondaryuserid);
ret = true; ret = true;
} }

Loading…
Cancel
Save