Fix error message relating to connection family

This fixes an error that causes ``Error: invalid argument: `family` must be 4 or 6`` when attempting to create a remote connection.