summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-26 13:37:44 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-26 13:37:44 +0300
commit0d65c896cfa45f5e3fef05d95c9409fd68ff45c8 (patch)
tree71a420645b43a1a2d7d45fe5f35071d986e1869e /src/nxt_controller.c
parent7f5b57bfb9a61ce0ba3fbc74f1775ace2d8ec6ec (diff)
downloadunit-0d65c896cfa45f5e3fef05d95c9409fd68ff45c8.tar.gz
unit-0d65c896cfa45f5e3fef05d95c9409fd68ff45c8.tar.bz2
Added configure and command line option --control.
Diffstat (limited to 'src/nxt_controller.c')
-rw-r--r--src/nxt_controller.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 3c9097fb..313daf00 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -147,22 +147,6 @@ nxt_runtime_controller_socket(nxt_task_t *task, nxt_runtime_t *rt)
sa = rt->controller_listen;
- if (rt->controller_listen == NULL) {
- sa = nxt_sockaddr_alloc(rt->mem_pool, sizeof(struct sockaddr_in),
- NXT_INET_ADDR_STR_LEN);
- if (sa == NULL) {
- return NXT_ERROR;
- }
-
- sa->type = SOCK_STREAM;
- sa->u.sockaddr_in.sin_family = AF_INET;
- sa->u.sockaddr_in.sin_port = htons(8443);
-
- nxt_sockaddr_text(sa);
-
- rt->controller_listen = sa;
- }
-
ls = nxt_mp_alloc(rt->mem_pool, sizeof(nxt_listen_socket_t));
if (ls == NULL) {
return NXT_ERROR;