mirror of
https://github.com/nginx/nginx.git
synced 2025-06-28 18:20:39 +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)
|
#if (NGX_HAVE_INET6)
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
ls[i].addr_text_max_len = NGX_INET6_ADDRSTRLEN;
|
ls[i].addr_text_max_len = NGX_INET6_ADDRSTRLEN;
|
||||||
len = NGX_INET6_ADDRSTRLEN + sizeof(":65535") - 1;
|
len = NGX_INET6_ADDRSTRLEN + sizeof("[]:65535") - 1;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user