commit | 2bc44ea01a66416d9fc1747e80b4190e080b7268 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Sat Feb 21 14:34:32 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Sat Feb 21 14:34:32 2009 +0000 |
tree | 68cbc33bfd120ec94a161bedd353790c2c62e4df | |
parent | e10385efe5b98b18cc19fa5c3707780162691b6e [diff] [blame] |
fix upstream port, introduced in r2513
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 7ccf664..497d84a 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c
@@ -704,8 +704,7 @@ /* AF_INET only */ - sin = (struct sockaddr_in *) &u->sockaddr; - port = sin->sin_port; + port = htons(u->port); in_addr = inet_addr((char *) host);