mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-01 02:11:47 +02:00
zeroconf works with IPv6
This commit is contained in:
parent
e9ff66e78b
commit
b34f8a6e00
5 changed files with 57 additions and 38 deletions
|
@ -218,8 +218,10 @@ int main (int argc, char **argv)
|
|||
{
|
||||
if (browser.browse("_snapcast._tcp", avahiResult, 5000))
|
||||
{
|
||||
host = avahiResult.ip_;
|
||||
port = avahiResult.port_;
|
||||
host = avahiResult.ip;
|
||||
port = avahiResult.port;
|
||||
if (avahiResult.ip_version == IPVersion::IPv6)
|
||||
host += "%" + cpt::to_string(avahiResult.iface_idx);
|
||||
LOG(INFO) << "Found server " << host << ":" << port << "\n";
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue