-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved "Network" url in cli #57882
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add tests please?
@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.
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 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for the PR! Sorry for the lag here, went ahead and added a test case for this in #72634 and got it up to date with canary
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: