From 8fd2c1a7d183ffe2ebb993a9150d0c7ff8877e5a Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Mon, 31 Jul 2017 12:13:10 +0200 Subject: [PATCH] fix lamassu-register for localhost port --- bin/lamassu-register | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/lamassu-register b/bin/lamassu-register index f0280453..119632f3 100755 --- a/bin/lamassu-register +++ b/bin/lamassu-register @@ -18,7 +18,12 @@ if (!name) { login.generateOTP(name) .then(otp => { - console.log(`https://${domain}?otp=${otp}`) + if (domain === 'localhost') { + console.log(`https://${domain}:8070?otp=${otp}`) + } else { + console.log(`https://${domain}?otp=${otp}`) + } + process.exit(0) }) .catch(err => {