Merge pull request #112 from JindongChen/save-time-on-wildcard-domain-name

Save time when domain name contains wildcard '%'
This commit is contained in:
Markus Mäkelä
2016-11-11 18:24:30 +02:00
committed by GitHub

View File

@ -61,6 +61,12 @@ setipaddress(struct in_addr *a, char *p)
hint.ai_socktype = SOCK_STREAM;
if (strchr(p, '%') != NULL)
{
MXS_INFO("Host %s contains wildcard, return", p);
return 0;
}
/*
* This is for the listening socket, matching INADDR_ANY only for now.
* For future specific addresses bind, a dedicated routine woulbd be better