DUBBO-524 内嵌jetty服务器没有绑定anyhost
This commit is contained in:
parent
b42af0e04f
commit
b6cfd1bc2b
|
|
@ -47,7 +47,7 @@ public class JettyHttpServer extends AbstractHttpServer {
|
|||
threadPool.setMinThreads(threads);
|
||||
|
||||
SelectChannelConnector connector = new SelectChannelConnector();
|
||||
if (NetUtils.isValidLocalHost(url.getHost())) {
|
||||
if (! url.isAnyHost() && NetUtils.isValidLocalHost(url.getHost())) {
|
||||
connector.setHost(url.getHost());
|
||||
}
|
||||
connector.setPort(url.getPort());
|
||||
|
|
|
|||
Loading…
Reference in New Issue