Manually add cpipe to connection list in example.

This commit is contained in:
Joris Vink 2015-10-23 12:13:23 +02:00
parent 02c667e940
commit 0b0ba0f6f5
1 changed files with 2 additions and 0 deletions

View File

@ -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;