-
Notifications
You must be signed in to change notification settings - Fork 720
Add new properties to inetutils: useOnlySiteLocalInterfaces and preferredNetworks #120
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
Conversation
| return true; | ||
| } | ||
|
|
||
| for (String regex : this.properties.getPreferredNetworks()) { |
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.
I'm a bit confused here. Why is prefferedNetworks being ignored?
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.
Look like a bug.
if (address.getHostAddress().matches(regex) || address.getHostAddress().startsWith(regex))must be replaced by:
if (!address.getHostAddress().matches(regex) && !address.getHostAddress().startsWith(regex))Now I use only useOnlySiteLocalInterfaces on production. prefferedNetworks is planned to be used in next months.
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.
Fixed
|
@tjuchniewicz Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
|
@tjuchniewicz Thank you for signing the Contributor License Agreement! |
* ebjwc-gh-114: Add new properties to customize InetUtils.
|
Squashed and merged via 2da3fed |
* ebjwc-spring-cloudgh-114: Add new properties to customize InetUtils.
Fixes gh-114