diff --git a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java index 5b1e1341..fc2897b3 100644 --- a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java +++ b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java @@ -57,9 +57,10 @@ public final class ToolsInstaller { if (path == null) return INSTALL_DIRS[0]; final List paths = Arrays.asList(path.split(":")); - for (final File dir : INSTALL_DIRS) + for (final File dir : INSTALL_DIRS) { if (paths.contains(dir.getPath()) && dir.isDirectory()) return dir; + } return null; } diff --git a/app/tools/wireguard b/app/tools/wireguard index 6977826c..b57461ce 160000 --- a/app/tools/wireguard +++ b/app/tools/wireguard @@ -1 +1 @@ -Subproject commit 6977826c2c9840f79dc2ac6b4206a5f393e9dfb4 +Subproject commit b57461ceb01e591525201a9b8db3bf5107e51f8d