mirror of https://github.com/nymea/nymea.git
Register IPv4 only services and fix manufacturer string
parent
99bec9583b
commit
71cc5452fc
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue