Browse Source

WgQuickBackend: Log when tunnels can't be enumerated

Signed-off-by: Samuel Holland <samuel@sholland.org>
master
Samuel Holland 6 years ago
parent
commit
a1d955ef62
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java

+ 2
- 1
app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java View File

@@ -54,7 +54,8 @@ public final class WgQuickBackend implements Backend {
toolsInstaller.ensureToolsAvailable(); toolsInstaller.ensureToolsAvailable();
if (rootShell.run(output, "wg show interfaces") != 0 || output.isEmpty()) if (rootShell.run(output, "wg show interfaces") != 0 || output.isEmpty())
return Collections.emptySet(); return Collections.emptySet();
} catch (final Exception ignored) {
} catch (final Exception e) {
Log.w(TAG, "Unable to enumerate running tunnels", e);
return Collections.emptySet(); return Collections.emptySet();
} }
// wg puts all interface names on the same line. Split them into separate elements. // wg puts all interface names on the same line. Split them into separate elements.


Loading…
Cancel
Save