[nginx] svn commit: r4818 - trunk/src/mail
ru at nginx.com
ru at nginx.com
Fri Aug 17 05:08:43 UTC 2012
Author: ru
Date: 2012-08-17 05:08:42 +0000 (Fri, 17 Aug 2012)
New Revision: 4818
URL: http://trac.nginx.org/nginx/changeset/4818/nginx
Log:
Mail: fixed sorting of listen addresses (ticket #187).
For http module this problem was already fixed in r4756.
Modified:
trunk/src/mail/ngx_mail.c
Modified: trunk/src/mail/ngx_mail.c
===================================================================
--- trunk/src/mail/ngx_mail.c 2012-08-16 13:01:41 UTC (rev 4817)
+++ trunk/src/mail/ngx_mail.c 2012-08-17 05:08:42 UTC (rev 4818)
@@ -539,6 +539,11 @@
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;
More information about the nginx-devel
mailing list