Commit 539ca47b by Josh Ghiloni

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

parent 9e40714e
......@@ -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