mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
If no local address is configured, bind to any address.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user