Skip to content

Conversation

@tjuchniewicz
Copy link
Contributor

Fixes gh-114

return true;
}

for (String regex : this.properties.getPreferredNetworks()) {
Copy link
Member

@spencergibb spencergibb Aug 17, 2016

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@pivotal-issuemaster
Copy link

@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.

@pivotal-issuemaster
Copy link

@tjuchniewicz Thank you for signing the Contributor License Agreement!

spencergibb added a commit that referenced this pull request Aug 18, 2016
* ebjwc-gh-114:
  Add new properties to customize InetUtils.
@spencergibb
Copy link
Member

Squashed and merged via 2da3fed

mbenson pushed a commit to mbenson/spring-cloud-commons that referenced this pull request Jun 5, 2018
* ebjwc-spring-cloudgh-114:
  Add new properties to customize InetUtils.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants