-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Use Ipv4Addr::{LOCALHOST, UNSPECIFIED} constants #29813
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.
thanks, much nicer!
Agreed with mvines - use of the constant is great so thank you! Not to punish a good deed with a follow-on request, but searching the repo, I see several more instances of Any interest in updating those in this PR as well? No worries if not, beggars can't be choosers and we appreciate the contribution either way |
😱 New commits were pushed while the automerge label was present. |
@steviez Just updated the PR to include changes to those two files. |
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.
Awesome, thanks for getting those last couple instances!
Problem
No problem, just some code cleanup.
Summary of Changes
Use the
Ipv4Addr::{LOCALHOST, UNSPECIFIED}
constants instead of directly using127.0.0.1
and0.0.0.0
.