} /* int setup_vpn_in_socket */
static void retry_outgoing_handler(event_loop_t *loop, void *data) {
+ assert(data);
+
meshlink_handle_t *mesh = loop->data;
outgoing_t *outgoing = data;
setup_outgoing_connection(mesh, outgoing);
return false;
}
-bool do_outgoing_connection(meshlink_handle_t *mesh, outgoing_t *outgoing) {
+void do_outgoing_connection(meshlink_handle_t *mesh, outgoing_t *outgoing) {
struct addrinfo *proxyai = NULL;
int result;
retry_outgoing(mesh, outgoing);
}
- return false;
+ return;
}
connection_t *c = new_connection();
connection_add(mesh, c);
io_add(&mesh->loop, &c->io, handle_meta_io, c, c->socket, IO_READ | IO_WRITE);
-
- return true;
}
void setup_outgoing_connection(meshlink_handle_t *mesh, outgoing_t *outgoing) {