mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-16 15:11:01 +01:00
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:
parent
1093a4586c
commit
f7b7c3e2f2
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user