commit 0b0ba0f6f546a4c2becfeceead3ee8a49c17267d
parent 02c667e940e92c27065c7d7e95b90536b0615b1e
Author: Joris Vink <joris@coders.se>
Date: Fri, 23 Oct 2015 12:13:23 +0200
Manually add cpipe to connection list in example.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/examples/ktunnel/src/ktunnel.c b/examples/ktunnel/src/ktunnel.c
@@ -121,6 +121,8 @@ ktunnel_pipe_create(struct connection *c, const char *host, const char *port)
}
cpipe = kore_connection_new(c);
+ TAILQ_INSERT_TAIL(&connections, cpipe, list);
+
cpipe->fd = fd;
cpipe->addr.ipv4 = sin;
cpipe->read = net_read;