Mercurial > hg > nginx-quic
comparison src/mail/ngx_mail_smtp_handler.c @ 5477:98876ce2a7fd
Resolver: implemented IPv6 name to address resolving.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 09 Dec 2013 10:53:28 +0400 |
parents | 07dd5bd222ac |
children | 7deb01451486 |
comparison
equal
deleted
inserted
replaced
5476:950c9ed3e66f | 5477:98876ce2a7fd |
---|---|
163 ngx_mail_close_connection(c); | 163 ngx_mail_close_connection(c); |
164 return; | 164 return; |
165 } | 165 } |
166 | 166 |
167 ctx->name = s->host; | 167 ctx->name = s->host; |
168 ctx->type = NGX_RESOLVE_A; | |
169 ctx->handler = ngx_mail_smtp_resolve_name_handler; | 168 ctx->handler = ngx_mail_smtp_resolve_name_handler; |
170 ctx->data = s; | 169 ctx->data = s; |
171 ctx->timeout = cscf->resolver_timeout; | 170 ctx->timeout = cscf->resolver_timeout; |
172 | 171 |
173 if (ngx_resolve_name(ctx) != NGX_OK) { | 172 if (ngx_resolve_name(ctx) != NGX_OK) { |