Register IPv4 only services and fix manufacturer string

pull/135/head
Simon Stürz 2018-03-27 19:31:21 +02:00 committed by Michael Zanetti
parent 99bec9583b
commit 71cc5452fc
2 changed files with 3 additions and 3 deletions

View File

@ -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<QString, QString> &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(),

View File

@ -115,7 +115,7 @@ QHash<QString, QString> WebSocketServer::createTxtRecord()
QHash<QString, QString> 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");