aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-01 17:54:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-01 17:54:47 +0200
commita9fd71cbcb6ea4b9123db4d0dbab5712b221ce2a (patch)
tree7e957baaaf3f3ba9efa75fd4410ae2e2308085e0
parentVersion bump (diff)
downloadwireguard-android-a9fd71cbcb6ea4b9123db4d0dbab5712b221ce2a.tar.xz
wireguard-android-a9fd71cbcb6ea4b9123db4d0dbab5712b221ce2a.zip
Fix small error0.0.20181001
-rw-r--r--app/build.gradle2
-rw-r--r--app/src/main/java/com/wireguard/config/InetEndpoint.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 6592be8..7a9cfc1 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -17,7 +17,7 @@ android {
applicationId 'com.wireguard.android'
minSdkVersion 21
targetSdkVersion 28
- versionCode 440
+ versionCode 441
versionName '0.0.20181001'
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
}
diff --git a/app/src/main/java/com/wireguard/config/InetEndpoint.java b/app/src/main/java/com/wireguard/config/InetEndpoint.java
index 4896ee9..3efe420 100644
--- a/app/src/main/java/com/wireguard/config/InetEndpoint.java
+++ b/app/src/main/java/com/wireguard/config/InetEndpoint.java
@@ -11,6 +11,7 @@ import com.wireguard.android.Application;
import com.wireguard.android.R;
import java.net.Inet4Address;
+import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.URI;
import java.net.URISyntaxException;
@@ -59,7 +60,7 @@ public class InetEndpoint {
if (resolvedHost == null)
resolvedHost = candidates[0];
}
- return String.format(resolvedHost instanceof Inet4Address ?
+ return String.format(resolvedHost instanceof Inet6Address ?
"[%s]:%d" : "%s:%d", resolvedHost.getHostAddress(), port);
}