From 8ec3375a5558ea4a88cf8fbeb398c8ac16eef902 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 1 Jul 2017 11:05:55 +0200 Subject: [PATCH] Allow '-' in node names. This allows URL-safe base64 encoding to be used in node names. --- src/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index e22053c7..ac7c4009 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -54,7 +54,7 @@ bool check_id(const char *id) { return false; for(; *id; id++) - if(!isalnum(*id) && *id != '_') + if(!isalnum(*id) && *id != '_' && *id != '-') return false; return true; -- 2.39.2