Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
IPv6 lnconnect string not displayed correctly #2172
While connecting for the first time to a node, trying to use a connection string that contains an IPv6 address cuts it on the UI.
The host address and port should be displayed in its full form (e.g. "[2a01:e34:vru2:8351:1334:c421:23a2:vab9]:10009").
Only the part preceding the ":" character is displayed: "[2a01" (see screenshot below).
Don't cut the IP string to the first ":" char.
Possible additional issue
If the code in charge of decomposing the connection string actually stops at the first ":" char, it could be impossible for people on IPv6-only networks to connect to their nodes. I haven't checked if that's the cas though, as I only have IPv4.
Thanks for the report @sohomangue .
The host string is only truncated for display purposes. The intention is to remove the port part so that we displaying the info that the user most cares about - what host they are connecting to. When we initiate the connection we use the full host/port string.
We will look to fix this so that the display better handles IPv6.