[raop] Just remove ipv6 address if we can't connect with the one avahi gave us

This commit is contained in:
ejurgensen 2016-10-15 00:51:22 +02:00
parent 03513c56a8
commit 0c6af89807

View File

@ -3802,6 +3802,14 @@ raop_cb_startup_options(struct evrtsp_request *req, void *arg)
{
DPRINTF(E_LOG, L_RAOP, "No response from '%s' (%s) to OPTIONS request\n", rs->devname, rs->address);
if (rs->device->v4_address && (rs->sa.ss.ss_family == AF_INET6))
{
DPRINTF(E_LOG, L_RAOP, "Falling back to ipv4, the ipv6 address is not responding\n");
free(rs->device->v6_address);
rs->device->v6_address = NULL;
}
goto cleanup;
}
@ -3906,6 +3914,14 @@ raop_cb_probe_options(struct evrtsp_request *req, void *arg)
{
DPRINTF(E_LOG, L_RAOP, "No response from '%s' (%s) to OPTIONS request\n", rs->devname, rs->address);
if (rs->device->v4_address && (rs->sa.ss.ss_family == AF_INET6))
{
DPRINTF(E_LOG, L_RAOP, "Falling back to ipv4, the ipv6 address is not responding\n");
free(rs->device->v6_address);
rs->device->v6_address = NULL;
}
goto cleanup;
}