Make isSecure() match getPort() in secure vs non-secure resolution

This commit is contained in:
Josh Ghiloni
2015-08-11 15:14:04 -06:00
parent 9e40714e3c
commit 539ca47bab

View File

@@ -121,7 +121,8 @@ public class EurekaDiscoveryClient implements DiscoveryClient {
@Override
public boolean isSecure() {
return this.instance.isPortEnabled(SECURE);
// assume if unsecure is enabled, that is the default
return !this.instance.isPortEnabled(UNSECURE) && this.instance.isPortEnabled(SECURE);
}
@Override