diff options
Diffstat (limited to '')
-rw-r--r-- | src/nxt_controller.c | 2 | ||||
-rw-r--r-- | src/nxt_router.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c index 33bb3e93..d2d81a4f 100644 --- a/src/nxt_controller.c +++ b/src/nxt_controller.c @@ -157,6 +157,8 @@ nxt_runtime_controller_socket(nxt_task_t *task, nxt_runtime_t *rt) } ls->sockaddr->type = sa->type; + ls->socklen = sa->socklen; + ls->address_length = sa->length; nxt_sockaddr_text(ls->sockaddr); diff --git a/src/nxt_router.c b/src/nxt_router.c index 9712d44b..77d830be 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -240,6 +240,8 @@ nxt_router_socket_conf(nxt_task_t *task, nxt_mp_t *mp, nxt_sockaddr_t *sa) } conf->listen.sockaddr = sa; + conf->listen.socklen = sa->socklen; + conf->listen.address_length = sa->length; conf->listen.socket = -1; conf->listen.backlog = NXT_LISTEN_BACKLOG; |