From 71cc5452fc49ffeed9a67e07655a96b72ada4eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 27 Mar 2018 19:31:21 +0200 Subject: [PATCH] Register IPv4 only services and fix manufacturer string --- libnymea-core/hardware/network/avahi/qtavahiservice.cpp | 4 ++-- libnymea-core/websocketserver.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libnymea-core/hardware/network/avahi/qtavahiservice.cpp b/libnymea-core/hardware/network/avahi/qtavahiservice.cpp index cd629123..35cf95d9 100644 --- a/libnymea-core/hardware/network/avahi/qtavahiservice.cpp +++ b/libnymea-core/hardware/network/avahi/qtavahiservice.cpp @@ -131,7 +131,7 @@ bool QtAvahiService::registerService(const QString &name, const quint16 &port, c d_ptr->serviceList = QtAvahiServicePrivate::createTxtList(txtRecords); d_ptr->error = avahi_entry_group_add_service_strlst(d_ptr->group, AVAHI_IF_UNSPEC, - AVAHI_PROTO_UNSPEC, + AVAHI_PROTO_INET, (AvahiPublishFlags) 0, d_ptr->name.toLatin1().data(), d_ptr->type.toLatin1().data(), @@ -193,7 +193,7 @@ bool QtAvahiService::updateTxtRecord(const QHash &txtRecords) d_ptr->serviceList = QtAvahiServicePrivate::createTxtList(txtRecords); d_ptr->error = avahi_entry_group_update_service_txt_strlst(d_ptr->group, AVAHI_IF_UNSPEC, - AVAHI_PROTO_UNSPEC, + AVAHI_PROTO_INET, (AvahiPublishFlags) 0, d_ptr->name.toLatin1().data(), d_ptr->type.toLatin1().data(), diff --git a/libnymea-core/websocketserver.cpp b/libnymea-core/websocketserver.cpp index b6d1c230..0bdb86ff 100644 --- a/libnymea-core/websocketserver.cpp +++ b/libnymea-core/websocketserver.cpp @@ -115,7 +115,7 @@ QHash WebSocketServer::createTxtRecord() QHash txt; txt.insert("jsonrpcVersion", JSON_PROTOCOL_VERSION); txt.insert("serverVersion", NYMEA_VERSION_STRING); - txt.insert("manufacturer", "nymea GmbH"); + txt.insert("manufacturer", "guh GmbH"); txt.insert("uuid", NymeaCore::instance()->configuration()->serverUuid().toString()); txt.insert("name", NymeaCore::instance()->configuration()->serverName()); txt.insert("sslEnabled", configuration().sslEnabled ? "true" : "false");