Improved "Network" url in cli
What?
Fix an old feature request to show the current ip address in the cli
Why?
Improve DX
How?
Look at the actual available network interfaces and use the first relevant IP. Picks an IPv4 or IPv6 hostname based on the hostname used to show the url for 'Local:', so both are of the same IP version.
fixes #11367 related to PR #22352
Example output:
@leerob Should be doable to actually unit test the function I added. Give me some time to figure this out over the weekend. 😀
This is a feature that would make my life so much easier. Is there anyway I could help?
Could you add tests please?
I can't think of any way how the function in question can be tested as I have little to no experince in testing. Can you please tell how it should be tested, then I will try to add a test based on the requirement.
Thanks
@kletse were you able to add some tests? This would be a nice feature for the devs
Still want to pick this up again. Maybe this weekend, not sure. Family first 😅