Skip to content

Commit

Permalink
Merge pull request #168 from allenxwang/loadbalancerrefactoring
Browse files Browse the repository at this point in the history
Restore DiscoveryEnabledServer constructor to make it backward compatible
  • Loading branch information
Allen Wang committed Sep 17, 2014
2 parents 78b96b7 + 82b52f7 commit ccf20f5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public class DiscoveryEnabledServer extends Server{
private final InstanceInfo instanceInfo;
private final MetaInfo serviceInfo;

public DiscoveryEnabledServer(final InstanceInfo instanceInfo, boolean useSecurePort) {
this(instanceInfo, useSecurePort, false);
}

public DiscoveryEnabledServer(final InstanceInfo instanceInfo, boolean useSecurePort, boolean useIpAddr) {
super(useIpAddr ? instanceInfo.getIPAddr() : instanceInfo.getHostName(), instanceInfo.getPort());
if(useSecurePort && instanceInfo.isPortEnabled(PortType.SECURE))
Expand Down

0 comments on commit ccf20f5

Please sign in to comment.