Merge pull request #485 from jghiloni/master

* pull485:
  Make `isSecure()` match `getPort()` in secure vs non-secure resolution
This commit is contained in:
Spencer Gibb
2015-08-11 18:18:53 -06:00

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