Commit 0141a13c by Spencer Gibb

Merge pull request #557 from boostrack-cloud/boostrack-patch-1

DRY
parents aa862673 9c144220
...@@ -112,12 +112,11 @@ public class EurekaDiscoveryClient implements DiscoveryClient { ...@@ -112,12 +112,11 @@ public class EurekaDiscoveryClient implements DiscoveryClient {
@Override @Override
public int getPort() { public int getPort() {
// assume if secure is enabled, that is the default if (isSecure()) {
if (!this.instance.isPortEnabled(SECURE)) {
return this.instance.getPort();
}
return this.instance.getSecurePort(); return this.instance.getSecurePort();
} }
return this.instance.getPort();
}
@Override @Override
public boolean isSecure() { public boolean isSecure() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment