mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
Mail: fixed sorting of listen addresses (ticket #187).
For http module this problem was already fixed in r4756.
This commit is contained in:
parent
5425263436
commit
f12c7563e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user