lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
506 stars 90 forks source link

Listening info incorrectly reported in logs #214

Closed ketominer closed 3 years ago

ketominer commented 3 years ago

Logs report "localhost" instead of the actual listening IP / interface

Expected behavior

Logs should report actual listening IP: " Web interface https://localhost:3010 "

Actual behavior

2021-04-18 13:22:48.469 [INF] LITD: Dialing lnd gRPC server at localhost:10009
2021-04-18 13:22:49.105 [INF] LITD: Listening for http_tls on: [::]:3010
----------------------------------------------------------
 Lightning Terminal (LiT) by Lightning Labs               

 Operating mode      remote                                   
 Node status         online                                   
 Alias               xxx                                   
 Version             0.12.1-beta commit=v0.12.1-beta                                   
 Web interface       https://localhost:3010                                
----------------------------------------------------------

To reproduce

./litd --httpslisten=0.0.0.0:3010 --uipassword=xxx --remote.lnd.macaroonpath=~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon

System information

LiT installed from release TGZ on ARM64

jamaljsr commented 3 years ago

We display localhost when the value is set to 0.0.0.0 because you cannot copy/paste "http://0.0.0.0:3010" into a browser.

The actual host:port is logged in the message above: "LITD: Listening for http_tls on: [::]:3010"

guggero commented 3 years ago

Going to fix this by just showing both values, the original and the copy/paste-able URL.