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 committed 2021-11-28 18:39:42 +00:00
1 parent 9560658c5b
commit e3093b532c
4 files changed
+15 -6

No files matched your search

+1 -1
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)