瀏覽代碼

Android: fix handling of IllegalStateException in hasIPv6Route

efryntov 5 月之前
父節點
當前提交
a3879ba6c3
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 
             // without a parent interface present."
             throw new Exception("hasIPv6Route failed", e);
+        } catch (IllegalStateException e) {
+            throw new Exception("hasIPv6Route failed", e);
         }
 
         return false;