This commit is contained in:
boostrack
2015-09-28 09:19:30 +02:00
parent b10bf9c305
commit 9c144220b1

View File

@@ -112,11 +112,10 @@ public class EurekaDiscoveryClient implements DiscoveryClient {
@Override
public int getPort() {
// assume if secure is enabled, that is the default
if (!this.instance.isPortEnabled(SECURE)) {
return this.instance.getPort();
if (isSecure()) {
return this.instance.getSecurePort();
}
return this.instance.getSecurePort();
return this.instance.getPort();
}
@Override