summaryrefslogtreecommitdiffhomepage
path: root/app/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-01-10 02:49:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-01-10 02:49:06 +0100
commita170fafd14f7b58819c12ae8716f440f9cdc5740 (patch)
tree4a6a54be303db786549603f11889807c067c2bd9 /app/src
parent73431b5458ed352e49e6fefe85f075483035a1c9 (diff)
Tunnel: ifname has max len 15
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/wireguard/android/model/Tunnel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/model/Tunnel.java b/app/src/main/java/com/wireguard/android/model/Tunnel.java
index 7977d16a..024f27a6 100644
--- a/app/src/main/java/com/wireguard/android/model/Tunnel.java
+++ b/app/src/main/java/com/wireguard/android/model/Tunnel.java
@@ -20,8 +20,8 @@ import java9.util.concurrent.CompletionStage;
*/
public class Tunnel extends BaseObservable implements Keyed<String> {
- public static final int NAME_MAX_LENGTH = 16;
- private static final Pattern NAME_PATTERN = Pattern.compile("[a-zA-Z0-9_=+.-]{1,16}");
+ public static final int NAME_MAX_LENGTH = 15;
+ private static final Pattern NAME_PATTERN = Pattern.compile("[a-zA-Z0-9_=+.-]{1,15}");
private final TunnelManager manager;
private final String name;