Mercurial > hg > nginx
diff src/mail/ngx_mail_smtp_handler.c @ 2855:a96a8c916b0c
mail proxy listen IPv6 support
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 18 May 2009 12:20:22 +0000 |
parents | a59b26eee816 |
children | 847ab5a32307 11ec1c7a57e9 |
line wrap: on
line diff
--- a/src/mail/ngx_mail_smtp_handler.c Mon May 18 12:12:06 2009 +0000 +++ b/src/mail/ngx_mail_smtp_handler.c Mon May 18 12:20:22 2009 +0000 @@ -66,6 +66,12 @@ return; } + if (c->sockaddr->sa_family != AF_INET) { + s->host = smtp_tempunavail; + ngx_mail_smtp_greeting(s, c); + return; + } + c->log->action = "in resolving client address"; ctx = ngx_resolve_start(cscf->resolver, NULL);