Fix problems with upper-case in domain-match.

The domain-match rewrite didn't take into account
that domain names are case-insensitive, so things like

--address=/Example.com/.....

didn't work correctly.
This commit is contained in:
Simon Kelley
2021-11-28 18:39:42 +00:00
parent 9560658c5b
commit e3093b532c
4 changed files with 15 additions and 6 deletions

View File

@@ -494,7 +494,7 @@ static int order(char *qdomain, size_t qlen, struct server *serv)
if (qlen > dlen)
return -1;
return strcmp(qdomain, serv->domain);
return hostname_order(qdomain, serv->domain);
}
static int order_servers(struct server *s1, struct server *s2)