Fix args handling for socket.connect