mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
do not add a port in redirect if we listen on unix domain socket
This commit is contained in:
parent
a40c395fe9
commit
569f95818b
1 changed files with 5 additions and 0 deletions
|
|
@ -337,6 +337,11 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
|||
sin6 = (struct sockaddr_in6 *) c->local_sockaddr;
|
||||
port = ntohs(sin6->sin6_port);
|
||||
break;
|
||||
#endif
|
||||
#if (NGX_HAVE_UNIX_DOMAIN)
|
||||
case AF_UNIX:
|
||||
port = 0;
|
||||
break;
|
||||
#endif
|
||||
default: /* AF_INET */
|
||||
sin = (struct sockaddr_in *) c->local_sockaddr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue