mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
fix server_addr value known from configuration, bug introduced in r2199
This commit is contained in:
parent
ad1e123bfa
commit
6645e76e38
@ -1631,6 +1631,10 @@ ngx_http_server_addr(ngx_http_request_t *r, ngx_str_t *s)
|
||||
}
|
||||
|
||||
r->in_addr = sin.sin_addr.s_addr;
|
||||
|
||||
} else {
|
||||
sin.sin_family = c->sockaddr->sa_family;
|
||||
sin.sin_addr.s_addr = r->in_addr;
|
||||
}
|
||||
|
||||
if (s == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user