If no local address is configured, bind to any address.

This commit is contained in:
akwizgran
2011-10-30 21:31:24 +00:00
parent 517aea3b1f
commit 2c72b1e2e2

View File

@@ -55,7 +55,8 @@ class SimpleSocketPlugin extends SocketPlugin {
@Override
protected synchronized SocketAddress getLocalSocketAddress() {
assert started;
return createSocketAddress(callback.getLocalProperties());
SocketAddress addr = createSocketAddress(callback.getLocalProperties());
return addr == null ? new InetSocketAddress(0) : addr;
}
@Override