res_rtp: Fix regression when IPv6 is not available.