Commit ddb09c49 by Spencer Gibb

Merge pull request #485 from jghiloni/master

* pull485: Make `isSecure()` match `getPort()` in secure vs non-secure resolution
parents 9e40714e 539ca47b
......@@ -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
......
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