connect.c: remove unused parameters from tcp_connect and proxy_connect