mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-25 12:29:18 -05:00
[raop] Just remove ipv6 address if we can't connect with the one avahi gave us
This commit is contained in:
parent
03513c56a8
commit
0c6af89807
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user