comparison src/mail/ngx_mail.c @ 4817:d794e59800ef

Mail: fixed sorting of listen addresses (ticket #187). For http module this problem was already fixed in r4756.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 17 Aug 2012 05:08:42 +0000
parents d620f497c50f
children 49a3fb31a05c
comparison
equal deleted inserted replaced
4816:2ccaaf838bc2 4817:d794e59800ef
537 if (first->wildcard) { 537 if (first->wildcard) {
538 /* a wildcard must be the last resort, shift it to the end */ 538 /* a wildcard must be the last resort, shift it to the end */
539 return 1; 539 return 1;
540 } 540 }
541 541
542 if (second->wildcard) {
543 /* a wildcard must be the last resort, shift it to the end */
544 return -1;
545 }
546
542 if (first->bind && !second->bind) { 547 if (first->bind && !second->bind) {
543 /* shift explicit bind()ed addresses to the start */ 548 /* shift explicit bind()ed addresses to the start */
544 return -1; 549 return -1;
545 } 550 }
546 551