summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.idea/copyright/ics_openvpn_gpl.xml1
-rw-r--r--main/build.gradle6
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java4
3 files changed, 6 insertions, 5 deletions
diff --git a/.idea/copyright/ics_openvpn_gpl.xml b/.idea/copyright/ics_openvpn_gpl.xml
index e78f61d3..b75531c0 100644
--- a/.idea/copyright/ics_openvpn_gpl.xml
+++ b/.idea/copyright/ics_openvpn_gpl.xml
@@ -1,6 +1,5 @@
<component name="CopyrightManager">
<copyright>
- <option name="allowReplaceRegexp" value="Copyright \(c\) 2012\-2016Arne Schwabe" />
<option name="myName" value="ics-openvpn-gpl" />
<option name="notice" value="Copyright (c) 2012-&amp;#36;{today.year} Arne Schwabe&#10;Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt" />
</copyright>
diff --git a/main/build.gradle b/main/build.gradle
index 551fda43..afe19468 100644
--- a/main/build.gradle
+++ b/main/build.gradle
@@ -19,9 +19,9 @@ repositories {
}
dependencies {
- compile 'com.android.support:support-annotations:25.4.0'
- compile 'com.android.support:cardview-v7:25.4.0'
- compile 'com.android.support:recyclerview-v7:25.4.0'
+ compile 'com.android.support:support-annotations:26.0.0'
+ compile 'com.android.support:cardview-v7:26.0.0'
+ compile 'com.android.support:recyclerview-v7:26.0.0'
// compile 'ch.acra:acra:4.5.0'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
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));
}
}