summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-28 15:16:28 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-28 15:16:28 +0300
commitd8f371dde9dd660c6067a173e70289c33e2a26c0 (patch)
treebba2a8c5912e06aef4cb5271e69a909b0c706d9c /src/nxt_router.c
parent61c20aae4b2b2a142bb368219ed3a4b218d714a8 (diff)
downloadunit-d8f371dde9dd660c6067a173e70289c33e2a26c0.tar.gz
unit-d8f371dde9dd660c6067a173e70289c33e2a26c0.tar.bz2
Setting listen socket fields lost in changeset 10688b89aa16.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c2
1 files changed, 2 insertions, 0 deletions
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;