mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +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
|
@Override
|
||||||
protected synchronized SocketAddress getLocalSocketAddress() {
|
protected synchronized SocketAddress getLocalSocketAddress() {
|
||||||
assert started;
|
assert started;
|
||||||
return createSocketAddress(callback.getLocalProperties());
|
SocketAddress addr = createSocketAddress(callback.getLocalProperties());
|
||||||
|
return addr == null ? new InetSocketAddress(0) : addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user