fix ios_connect_socket