Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4814 - trunk/src/mail

Anonymous User
August 15, 2012 07:32AM
Author: ru
Date: 2012-08-15 11:30:24 +0000 (Wed, 15 Aug 2012)
New Revision: 4814
URL: http://trac.nginx.org/nginx/changeset/4814/nginx

Log:
mail_core: don't let the well-known port in the "listen" directive to
override the already set "protocol".


Modified:
trunk/src/mail/ngx_mail_core_module.c

Modified: trunk/src/mail/ngx_mail_core_module.c
===================================================================
--- trunk/src/mail/ngx_mail_core_module.c 2012-08-15 11:17:55 UTC (rev 4813)
+++ trunk/src/mail/ngx_mail_core_module.c 2012-08-15 11:30:24 UTC (rev 4814)
@@ -378,22 +378,24 @@
ls->ipv6only = 1;
#endif

- for (m = 0; ngx_modules[m]; m++) {
- if (ngx_modules[m]->type != NGX_MAIL_MODULE) {
- continue;
- }
-
- module = ngx_modules[m]->ctx;
-
- if (module->protocol == NULL) {
- continue;
- }
-
- for (i = 0; module->protocol->port[i]; i++) {
- if (module->protocol->port[i] == u.port) {
- cscf->protocol = module->protocol;
- break;
+ if (cscf->protocol == NULL) {
+ for (m = 0; ngx_modules[m]; m++) {
+ if (ngx_modules[m]->type != NGX_MAIL_MODULE) {
+ continue;
}
+
+ module = ngx_modules[m]->ctx;
+
+ if (module->protocol == NULL) {
+ continue;
+ }
+
+ for (i = 0; module->protocol->port[i]; i++) {
+ if (module->protocol->port[i] == u.port) {
+ cscf->protocol = module->protocol;
+ break;
+ }
+ }
}
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4814 - trunk/src/mail

Anonymous User 1014 August 15, 2012 07:32AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 146
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready