Merge branch '1745-try-to-bind-on-connectivity-change' into 'master'

Try to bind IPv4 and IPv6 sockets whenever connectivity changes

Closes #1745

See merge request briar/briar!1275
This commit is contained in:
Torsten Grote
2020-08-14 11:24:18 +00:00
2 changed files with 9 additions and 3 deletions

View File

@@ -277,11 +277,11 @@ class AndroidLanTcpPlugin extends LanTcpPlugin {
// make outgoing connections on API 21+ if another network
// has internet access
socketFactory = SocketFactory.getDefault();
if (s == INACTIVE) bind();
bind();
} else {
LOG.info("Connected to wifi");
socketFactory = getSocketFactory();
if (s == INACTIVE) bind();
bind();
}
});
}