Add support for receiving iTunes streams back, got broken in the process
[deb_shairplay.git] / src / lib / raop_rtp.c
index 3400c0c9169e65679b0ec573cb6899bf5573b2eb..3c7c17745bfd551726bdff1d2688a45273349654 100644 (file)
@@ -94,6 +94,10 @@ raop_rtp_parse_remote(raop_rtp_t *raop_rtp, const char *remote)
                free(original);
                return -1;
        }
+       if (strstr(current, ":")) {
+               /* FIXME: iTunes sends IP4 even with an IPv6 address, does it mean something */
+               family = AF_INET6;
+       }
        ret = netutils_parse_address(family, current,
                                     &raop_rtp->remote_saddr,
                                     sizeof(raop_rtp->remote_saddr));