mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-03 17:40:13 +00:00
Workaround for xmrig-proxy bug.
This commit is contained in:
parent
0b4b07fcd6
commit
b93e7d9daa
1 changed files with 5 additions and 0 deletions
|
@ -625,6 +625,11 @@ static bool login_decode(struct stratum_ctx *sctx, const json_t *val) {
|
||||||
memcpy(&sctx->id, id, strlen(id));
|
memcpy(&sctx->id, id, strlen(id));
|
||||||
|
|
||||||
const char *s = json_string_value(json_object_get(res, "status"));
|
const char *s = json_string_value(json_object_get(res, "status"));
|
||||||
|
if (!s) {
|
||||||
|
// Workaround for xmrig-proxy bug https://github.com/xmrig/xmrig-proxy/commit/dfa1960fe3eeb13f80717b7dbfcc7c6e9f222d89
|
||||||
|
s = json_string_value(json_object_get(val, "status"));
|
||||||
|
}
|
||||||
|
|
||||||
if (!s) {
|
if (!s) {
|
||||||
applog(LOG_ERR, "JSON invalid status");
|
applog(LOG_ERR, "JSON invalid status");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue