From: Guus Sliepen Date: Sat, 1 Jul 2017 09:05:55 +0000 (+0200) Subject: Allow '-' in node names. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8ec3375a5558ea4a88cf8fbeb398c8ac16eef902;p=meshlink Allow '-' in node names. This allows URL-safe base64 encoding to be used in node names. --- 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;