a quick fix of net.socket:connect