MINOR: servers: Support alphanumeric characters for the server templates names

'server-template' directive doesn't support the same name alphabet as
the 'server' directive. This patch allows the usage of chars [0-9].

[wt: let's backport this to 1.8 to apply the principle of least surprize
 to people migrating to server templates]
This commit is contained in:
Thierry Fournier 2018-03-26 11:54:39 +02:00 committed by Willy Tarreau
parent 1093a4586c
commit f7b7c3e2f2

View File

@ -629,7 +629,7 @@ const char *invalid_domainchar(const char *name) {
* If everything is fine, NULL is returned.
*/
const char *invalid_prefix_char(const char *name) {
return __invalid_char(name, isalpha);
return __invalid_char(name, isalnum);
}
/*