From 458ac9524f3e6b41b680fc425bd9692f7105e984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=A4rdian?= Date: Thu, 12 Sep 2024 09:39:28 +0200 Subject: [PATCH] validation: fix comment about WireGuard key length --- src/validation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.c b/src/validation.c index 985e6450b..a0371a8fe 100644 --- a/src/validation.c +++ b/src/validation.c @@ -71,7 +71,7 @@ is_hostname(const char *hostname) gboolean is_wireguard_key(const char* key) { - /* Check if this is (most likely) a 265bit, base64 encoded wireguard key */ + /* Check if this is (most likely) a 256 bit, base64 encoded wireguard key */ if (strlen(key) == 44 && key[43] == '=' && key[42] != '=') { static const gchar *pattern = "^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=)+$"; return g_regex_match_simple(pattern, key, 0, G_REGEX_MATCH_NOTEMPTY);