Add connect.c for proxy