Mercurial > hg > nginx-vendor-0-7
comparison src/core/ngx_inet.c @ 450:20962db0117c NGINX_0_7_37
nginx 0.7.37
*) Bugfix: directive using upstreams did not work; the bug had appeared
in 0.7.36.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 21 Feb 2009 00:00:00 +0300 |
parents | 76a79816b771 |
children | a8424ffa495c |
comparison
equal
deleted
inserted
replaced
449:32d6e4e48a3a | 450:20962db0117c |
---|---|
702 | 702 |
703 (void) ngx_cpystrn(host, u->host.data, u->host.len + 1); | 703 (void) ngx_cpystrn(host, u->host.data, u->host.len + 1); |
704 | 704 |
705 /* AF_INET only */ | 705 /* AF_INET only */ |
706 | 706 |
707 sin = (struct sockaddr_in *) &u->sockaddr; | 707 port = htons(u->port); |
708 port = sin->sin_port; | |
709 | 708 |
710 in_addr = inet_addr((char *) host); | 709 in_addr = inet_addr((char *) host); |
711 | 710 |
712 if (in_addr == INADDR_NONE) { | 711 if (in_addr == INADDR_NONE) { |
713 h = gethostbyname((char *) host); | 712 h = gethostbyname((char *) host); |