Commit 9dba6c80 authored by Sergey Lyubka's avatar Sergey Lyubka Committed by Cesanta Bot

Add endpoint to list tunnels

PUBLISHED_FROM=f45d9832a884374f6f9ea3f2e0a8c9465f214896
parent fc635a93
...@@ -4578,8 +4578,9 @@ static void spawn_handling_thread(struct mg_connection *nc) { ...@@ -4578,8 +4578,9 @@ static void spawn_handling_thread(struct mg_connection *nc) {
* dummy event manager. * dummy event manager.
* c[0] stays in this thread, c[1] goes to another thread. * c[0] stays in this thread, c[1] goes to another thread.
*/ */
mg_mgr_init(&dummy, NULL);
mg_socketpair(sp, SOCK_STREAM); mg_socketpair(sp, SOCK_STREAM);
memset(&dummy, 0, sizeof(dummy));
c[0] = mg_add_sock(&dummy, sp[0], forwarder_ev_handler); c[0] = mg_add_sock(&dummy, sp[0], forwarder_ev_handler);
c[1] = mg_add_sock(&dummy, sp[1], nc->listener->priv_1.f); c[1] = mg_add_sock(&dummy, sp[1], nc->listener->priv_1.f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment