diff --git a/android/tool/src/main/java/io/netbird/client/tool/IFace.java b/android/tool/src/main/java/io/netbird/client/tool/IFace.java index 313138f..2d8003f 100644 --- a/android/tool/src/main/java/io/netbird/client/tool/IFace.java +++ b/android/tool/src/main/java/io/netbird/client/tool/IFace.java @@ -40,7 +40,10 @@ public long configureInterface(String address, long mtu, String dns, String sear @Override public boolean protectSocket(int fd) { - return vpnService.protect(fd); + vpnService.protect(fd); + // Ignore the error to allow the app to connect to a Management server before the VPN service + // is up and running. This is just a workaround and should be removed in the future. + return true; } private int createTun(String ip, int prefixLength, int mtu, String dns, String[] searchDomains, LinkedList routes) throws Exception {