aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process_cycle.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2022-11-23 17:30:08 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2022-11-23 17:30:08 +0300
commit22223c75c9715e568f5710a8eed1fee9e7c2983f (patch)
tree09d21b13a921c385119565c107b15f0ae66a4578 /src/os/unix/ngx_process_cycle.c
parent17066ac8600412eabb1fdf8360cf6ada13f02391 (diff)
downloadnginx-22223c75c9715e568f5710a8eed1fee9e7c2983f.tar.gz
nginx-22223c75c9715e568f5710a8eed1fee9e7c2983f.zip
Filtering duplicate addresses in listen (ticket #2400).
Due to the glibc bug[1], getaddrinfo("localhost") with AI_ADDRCONFIG on a typical host with glibc and without IPv6 returns two 127.0.0.1 addresses, and therefore "listen localhost:80;" used to result in "duplicate ... address and port pair" after 4f9b72a229c1. Fix is to explicitly filter out duplicate addresses returned during resolution of a name. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=14969
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
0 files changed, 0 insertions, 0 deletions