Klaus Demo nginx / 569f958
do not add a port in redirect if we listen on unix domain socket Igor Sysoev 12 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
337337 port = ntohs(sin6->sin6_port);
338338 break;
339339 #endif
340 #if (NGX_HAVE_UNIX_DOMAIN)
341 case AF_UNIX:
342 port = 0;
343 break;
344 #endif
340345 default: /* AF_INET */
341346 sin = (struct sockaddr_in *) c->local_sockaddr;
342347 port = ntohs(sin->sin_port);