[FEATURE REQUEST]Print all valid IP addresses when binding to addr any
- Dominant language
- Go
- Stars
- 25.6k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
I likes iris very much. When I used it to start a webserver with listen string "0.0.0.0:8889" or ":8889",when the program start up , it print some listening info like behind:
```
Now listening on: http://0.0.0.0:8889
Application started. Press CTRL+C to shut down.
```
I think this display info is very unfriendly. Like vite (a node.js develop server),when the bind address is "0.0.0.0",it will display all avalible ip address on this computer,just like this:
```
vite v2.9.15 dev server running at:
> Network: http://192.168.26.1:3100/ 12:52:31
> Network: http://192.168.164.1:3100/ 12:52:31
> Network: http://192.168.131.17:3100/ 12:52:31
> Local: http://localhost:3100/ 12:52:31
```
This is more useful than the url "http://0.0.0.0:8889" which can not be directly used on web browser or other places, so I hope there can be some improvement on this issue. Thank you very much!
Contributor guide
Assessment
This issue has not been assessed yet.