From e332e182649828c1e93d29346e100592ddba0937 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Sat, 25 Feb 2017 23:17:54 -0800 Subject: [PATCH] Adding keepalived support to the pool source. --- lib/pool.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pool.js b/lib/pool.js index aa3a4ca..b04d19b 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -694,6 +694,13 @@ function handleMinerData(method, params, ip, portData, sendReply, pushMessage) { sendReply(null, {status: 'OK'}); break; + case 'keepalived': + if (!miner) { + sendReply('Unauthenticated'); + return; + } + sendReply('KEEPALIVED'); + break; } }