From 42857d75af0a6bb5ef1fe249b07578dadc2180b7 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 23 Jul 2018 01:15:30 +0200 Subject: [PATCH] mark avahi service entry as IPv6 as appropriate --- libnymea-core/hardware/network/avahi/qtavahiservice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea-core/hardware/network/avahi/qtavahiservice.cpp b/libnymea-core/hardware/network/avahi/qtavahiservice.cpp index a5fac526..dd9e3746 100644 --- a/libnymea-core/hardware/network/avahi/qtavahiservice.cpp +++ b/libnymea-core/hardware/network/avahi/qtavahiservice.cpp @@ -154,7 +154,7 @@ bool QtAvahiService::registerService(const QString &name, const QHostAddress &ho d_ptr->serviceList = QtAvahiServicePrivate::createTxtList(txtRecords); d_ptr->error = avahi_entry_group_add_service_strlst(d_ptr->group, ifIndex, - AVAHI_PROTO_INET, + hostAddress.protocol() == QAbstractSocket::IPv6Protocol ? AVAHI_PROTO_INET6 : AVAHI_PROTO_INET, (AvahiPublishFlags) 0, d_ptr->name.toLatin1().data(), d_ptr->type.toLatin1().data(),