mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 15:39:01 +08:00
Core: allocate enough memory to hold IPv6 text address plus port.
This commit is contained in:
parent
9ae40c5b54
commit
8aa8365121
@ -129,7 +129,7 @@ ngx_set_inherited_sockets(ngx_cycle_t *cycle)
|
||||
#if (NGX_HAVE_INET6)
|
||||
case AF_INET6:
|
||||
ls[i].addr_text_max_len = NGX_INET6_ADDRSTRLEN;
|
||||
len = NGX_INET6_ADDRSTRLEN + sizeof(":65535") - 1;
|
||||
len = NGX_INET6_ADDRSTRLEN + sizeof("[]:65535") - 1;
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user