diff options
author | Arne Schwabe <arne@rfc2549.org> | 2017-07-31 22:06:33 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2017-07-31 22:06:33 +0200 |
commit | ec8652603db30c88c95c478b1d1092f57ea4331b (patch) | |
tree | 1a03cdbe05c7243dd11d06d3a12489c4dd719110 /main/src | |
parent | 84ec02a142c090cb2a18f74e0a9bbaacab37d7ee (diff) |
Silently ignore parsing error if DNS server looks like IPv6 (and hope that Samsung only screwed up IPv4)
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java index a4551bf9..a4b7b480 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java +++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java @@ -764,7 +764,9 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac positiveIPv4Routes.add(dnsServer); } } catch (Exception e) { - VpnStatus.logError("Error parsing DNS Server IP: " + mDnslist.get(0)); + // If it looks like IPv6 ignore error + if (!mDnslist.get(0).contains(":")) + VpnStatus.logError("Error parsing DNS Server IP: " + mDnslist.get(0)); } } |