From 7ffe4fbe18247bba2a76c495507fdac2cce39a47 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 16 Oct 2014 09:01:14 +1100 Subject: [PATCH] Allow proxying to nonce2 size 3 pools with a warning --- src/generator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index 6b1f1198..fe1f9b17 100644 --- a/src/generator.c +++ b/src/generator.c @@ -559,7 +559,9 @@ static bool parse_subscribe(connsock_t *cs, proxy_instance_t *proxi) LOGWARNING("Invalid nonce2len %d in parse_subscribe", size); goto out; } - if (size < 4) { + if (size == 3) + LOGWARNING("Nonce2 length %d means proxied clients can't be >5TH each", size); + else if (size < 3) { LOGWARNING("Nonce2 length %d too small to be able to proxy", size); goto out; }