diff src/http/ngx_http_core_module.c @ 2528:c1975ccd0215

axe r->in_addr
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Feb 2009 21:05:10 +0000
parents 52ce03b3ad18
children 339da812982c
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1776,7 +1776,6 @@ ngx_http_server_addr(ngx_http_request_t 
 {
     socklen_t            len;
     ngx_connection_t    *c;
-    struct sockaddr_in  *sin;
     u_char               sa[NGX_SOCKADDRLEN];
 
     c = r->connection;
@@ -1799,9 +1798,6 @@ ngx_http_server_addr(ngx_http_request_t 
         ngx_memcpy(c->local_sockaddr, &sa, len);
     }
 
-    sin = (struct sockaddr_in *) c->local_sockaddr;
-    r->in_addr = sin->sin_addr.s_addr;
-
     if (s == NULL) {
         return NGX_OK;
     }
@@ -2065,7 +2061,6 @@ ngx_http_subrequest(ngx_http_request_t *
         c->data = sr;
     }
 
-    sr->in_addr = r->in_addr;
     sr->port = r->port;
     sr->port_text = r->port_text;