aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-11 01:02:55 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-11 01:02:55 +0100
commit37c6c74d415b14dd7a71b4c8aa8c2ca88256b66e (patch)
tree61ecb7bc94c7cfb88923c228bc3a81886d07af0a
parentDo not allow for an empty port in endpoint (diff)
downloadwireguard-android-37c6c74d415b14dd7a71b4c8aa8c2ca88256b66e.tar.xz
wireguard-android-37c6c74d415b14dd7a71b4c8aa8c2ca88256b66e.zip
Lowercase endpoint in exception message
-rw-r--r--app/src/main/java/com/wireguard/config/InetEndpoint.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/config/InetEndpoint.java b/app/src/main/java/com/wireguard/config/InetEndpoint.java
index 962d97c..355b325 100644
--- a/app/src/main/java/com/wireguard/config/InetEndpoint.java
+++ b/app/src/main/java/com/wireguard/config/InetEndpoint.java
@@ -44,7 +44,7 @@ public final class InetEndpoint {
public static InetEndpoint parse(final String endpoint) {
if (FORBIDDEN_CHARACTERS.matcher(endpoint).find())
- throw new IllegalArgumentException("Forbidden characters in Endpoint");
+ throw new IllegalArgumentException("Forbidden characters in endpoint");
final URI uri;
try {
uri = new URI("wg://" + endpoint);