Mercurial > hg > nginx
comparison src/mail/ngx_mail_auth_http_module.c @ 4971:eaf95350d75c
Implemented IPv6 support for URLs specified using domain names.
This includes "debug_connection", upstreams, "proxy_pass", etc.
(ticket #92)
To preserve compatibility, "listen" specified with a domain name
selects the first IPv4 address, if available. If not available,
the first IPv6 address will be used (ticket #186).
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 17 Dec 2012 12:08:53 +0000 |
parents | 785ae4de268b |
children | c788e54090de |
comparison
equal
deleted
inserted
replaced
4970:ed2219d58518 | 4971:eaf95350d75c |
---|---|
1386 ngx_memzero(&u, sizeof(ngx_url_t)); | 1386 ngx_memzero(&u, sizeof(ngx_url_t)); |
1387 | 1387 |
1388 u.url = value[1]; | 1388 u.url = value[1]; |
1389 u.default_port = 80; | 1389 u.default_port = 80; |
1390 u.uri_part = 1; | 1390 u.uri_part = 1; |
1391 u.one_addr = 1; | |
1392 | 1391 |
1393 if (ngx_strncmp(u.url.data, "http://", 7) == 0) { | 1392 if (ngx_strncmp(u.url.data, "http://", 7) == 0) { |
1394 u.url.len -= 7; | 1393 u.url.len -= 7; |
1395 u.url.data += 7; | 1394 u.url.data += 7; |
1396 } | 1395 } |