From faf926bc80450b7ed64eea89d7e5b748aef6e869 Mon Sep 17 00:00:00 2001 From: Son Nguyen Date: Mon, 9 Apr 2018 16:17:12 +0700 Subject: [PATCH] Prevent pool crash when password is null --- lib/pool.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pool.js b/lib/pool.js index ca71820..0721368 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -213,6 +213,8 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer // If the password is x, aka, old-logins, we're not going to allow detailed review of miners. // Miner Variables + // prevent pool crash when pass is null + if (!pass) pass = 'x'; let pass_split = pass.split(":"); this.error = ""; this.identifier = pass_split[0];