mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 22:59:54 +01:00
Interface may be null if there are no suitable network interfaces.
This commit is contained in:
@@ -120,6 +120,7 @@ class LanTcpPlugin extends TcpPlugin {
|
|||||||
MulticastSocket ms = null;
|
MulticastSocket ms = null;
|
||||||
try {
|
try {
|
||||||
InetAddress iface = chooseInterface();
|
InetAddress iface = chooseInterface();
|
||||||
|
if(iface == null) return null;
|
||||||
ms = new MulticastSocket(mcast.getPort());
|
ms = new MulticastSocket(mcast.getPort());
|
||||||
ms.setInterface(iface);
|
ms.setInterface(iface);
|
||||||
ms.joinGroup(mcast.getAddress());
|
ms.joinGroup(mcast.getAddress());
|
||||||
|
|||||||
Reference in New Issue
Block a user