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 => {