-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
add UseIPAddrForServer configuration to not require DNS for 2.x/master #162
Conversation
ribbon-pull-requests #172 SUCCESS |
Just a note that while I have tested the 1.x stream jars in an end to end application, for 2.x I have no such application, so the only testing I have performed is the unit test provided. |
@@ -89,6 +90,8 @@ public void initWithNiwsConfig(IClientConfig clientConfig) { | |||
prioritizeVipAddressBasedServers = Boolean.parseBoolean(""+clientConfig.getProperty(CommonClientConfigKey.PrioritizeVipAddressBasedServers, prioritizeVipAddressBasedServers)); | |||
datacenter = ConfigurationManager.getDeploymentContext().getDeploymentDatacenter(); | |||
targetRegion = (String) clientConfig.getProperty(CommonClientConfigKey.TargetRegion); | |||
|
|||
shouldUseIpAddr = clientConfig.getPropertyAsBoolean(CommonClientConfigKey.UseIPAddrForServer, false); |
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.
Instead of hardcoded false
, we can use DefaultClientConfigImpl.DEFAULT_USEIPADDRESS_FOR_SERVER
@aspyker This PR looks good to me except for the two minor comments. Thanks! |
ribbon-pull-requests #174 SUCCESS |
add UseIPAddrForServer configuration to not require DNS for 2.x/master
No description provided.