diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-09 05:41:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-09 05:54:47 +0100 |
commit | a641a093ad67dfeb30053af4fed66944b4def946 (patch) | |
tree | 58f7d51ab0db84e92e7c32509ca465e86beb7366 /app/src/main/java/com/wireguard/config/Peer.java | |
parent | 704369d431271553f66ac9efc9b96447160d3bd7 (diff) |
Use English lower casing
In Turkish, I becomes ı instead of i, which is a problem when matching
things like "AllowedIPs".
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/config/Peer.java')
-rw-r--r-- | app/src/main/java/com/wireguard/config/Peer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/config/Peer.java b/app/src/main/java/com/wireguard/config/Peer.java index 50135fb0..c15d3ae9 100644 --- a/app/src/main/java/com/wireguard/config/Peer.java +++ b/app/src/main/java/com/wireguard/config/Peer.java @@ -13,6 +13,7 @@ import java.util.Collection; import java.util.Collections; import java.util.LinkedHashSet; import java.util.List; +import java.util.Locale; import java.util.Objects; import java.util.Set; @@ -54,7 +55,7 @@ public final class Peer { for (final CharSequence line : lines) { final Attribute attribute = Attribute.parse(line) .orElseThrow(() -> new ParseException("[Peer]", line, "Syntax error")); - switch (attribute.getKey().toLowerCase()) { + switch (attribute.getKey().toLowerCase(Locale.ENGLISH)) { case "allowedips": builder.parseAllowedIPs(attribute.getValue()); break; |