Mail: fixed sorting of listen addresses (ticket #187).

For http module this problem was already fixed in r4756.
This commit is contained in:
Ruslan Ermilov 2012-08-17 05:08:42 +00:00
parent 5425263436
commit f12c7563e2

View File

@ -539,6 +539,11 @@ ngx_mail_cmp_conf_addrs(const void *one, const void *two)
return 1;
}
if (second->wildcard) {
/* a wildcard must be the last resort, shift it to the end */
return -1;
}
if (first->bind && !second->bind) {
/* shift explicit bind()ed addresses to the start */
return -1;