From df3062c7ad591a963d4c3cbb58797a0af4d56f33 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 10 Jan 2018 02:49:06 +0100 Subject: Tunnel: ifname has max len 15 Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/model/Tunnel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/com/wireguard/android') 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 { - 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; -- cgit v1.2.3