raop: Add IPv6 support

This commit is contained in:
Hajime Fujita 2016-11-06 12:54:18 -06:00 committed by Tanu Kaskinen
parent 3e53f47c8d
commit 3de65e61e4
2 changed files with 17 additions and 8 deletions

View file

@ -330,7 +330,7 @@ static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata
}
} else if (AF_INET6 == sa.sa.sa_family) {
if ((res = inet_ntop(AF_INET6, &sa.in6.sin6_addr, buf, sizeof(buf)))) {
c->localip = pa_sprintf_malloc("[%s]", res);
c->localip = pa_xstrdup(res);
}
}
}