Pick predefined port if it's set
This commit is contained in:
@@ -87,7 +87,7 @@ public class NoopDiscoveryClientAutoConfiguration implements
|
||||
EmbeddedServletContainer container = ((EmbeddedWebApplicationContext) this.context)
|
||||
.getEmbeddedServletContainer();
|
||||
if (container != null) {
|
||||
port = container.getPort();
|
||||
port = port != 0 ? port : container.getPort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user