From 975ad9681b032b2a39dc65378aa43d984e019276 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 19 May 2021 14:36:55 +0200 Subject: [PATCH] terminal: fix display issues with startup info --- terminal.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminal.go b/terminal.go index fbef1555..527ac642 100644 --- a/terminal.go +++ b/terminal.go @@ -918,6 +918,7 @@ func (g *LightningTerminal) showStartupInfo() error { // Node is locked. info.status = "locked" info.alias = "???? (node is locked)" + info.version = "???? (node is locked)" } else { info.status = "online" info.alias = res.Alias @@ -937,7 +938,7 @@ func (g *LightningTerminal) showStartupInfo() error { // If there's an additional HTTP listener, list it as well. listenAddr := g.cfg.HTTPSListen if g.cfg.HTTPListen != "" { - host := toLocalAddress(listenAddr) + host := toLocalAddress(g.cfg.HTTPListen) info.webURI = fmt.Sprintf("%s or http://%s", info.webURI, host) listenAddr = fmt.Sprintf("%s, %s", listenAddr, g.cfg.HTTPListen) }