Browse Source

Android: fix handling of IllegalStateException in hasIPv6Route

efryntov 6 months ago
parent
commit
a3879ba6c3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      MobileLibrary/Android/PsiphonTunnel/PsiphonTunnel.java

+ 2 - 0
MobileLibrary/Android/PsiphonTunnel/PsiphonTunnel.java

@@ -1210,6 +1210,8 @@ public class PsiphonTunnel {
             // NullPointerException if called in an environment where there is a virtual interface 
             // NullPointerException if called in an environment where there is a virtual interface 
             // without a parent interface present."
             // without a parent interface present."
             throw new Exception("hasIPv6Route failed", e);
             throw new Exception("hasIPv6Route failed", e);
+        } catch (IllegalStateException e) {
+            throw new Exception("hasIPv6Route failed", e);
         }
         }
 
 
         return false;
         return false;