X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=blobdiff_plain;f=null.c;h=2e3e2659022fed2717508b4bba4c8c996c7a082c;hp=a543af864d8d4a0f9b2abe879cd507fa94e28d0c;hb=1148a1c1d952687367d755cdc0e779e5ff32b43f;hpb=4ec3d91a7c74be946d141f25897a492160b3d611 diff --git a/null.c b/null.c index a543af8..2e3e265 100644 --- a/null.c +++ b/null.c @@ -50,6 +50,7 @@ static net_hook_t* null_server_hook_new (net_hook_t* client_hook, char *server) { net_hook_t* hook; int fd; + HCConn *conn; hook = g_slice_new (net_hook_t); hook->peer = client_hook; hook->server = TRUE; @@ -57,9 +58,11 @@ static net_hook_t* null_server_hook_new (net_hook_t* client_hook, char *server) hook->close = null_close; hook->read = null_read; hook->data = NULL; + conn = hc_conn_new (NULL, NULL); hook->conn = hc_conn_new (nethook_event, hook); - fd = hc_tcp_connect (server, "110"); - hc_conn_set_driver_channel (hook->conn, fd); + fd = hc_tcp_connect (server, "995"); + hc_conn_set_driver_channel (conn, fd); + hc_conn_set_driver_ssl (hook->conn, conn); return hook; }