From fcf4930b4f1067f17aff8440ddbf00f744cd58ff Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Wed, 28 Jun 2023 13:37:14 +0200 Subject: [PATCH] Remove ip and port fields: iOS doesn't need them --- core/backends/lan/lanlinkprovider.h | 5 ----- core/backends/lan/mdnsdiscovery.cpp | 2 -- 2 files changed, 7 deletions(-) diff --git a/core/backends/lan/lanlinkprovider.h b/core/backends/lan/lanlinkprovider.h index 18eb6b167..8089146b0 100644 --- a/core/backends/lan/lanlinkprovider.h +++ b/core/backends/lan/lanlinkprovider.h @@ -40,11 +40,6 @@ public: void sendUdpIdentityPacket(const QList &addresses); - QHostAddress localAddress() const - { - return m_udpSocket.localAddress(); - }; - static void configureSslSocket(QSslSocket *socket, const QString &deviceId, bool isDeviceTrusted); static void configureSocket(QSslSocket *socket); diff --git a/core/backends/lan/mdnsdiscovery.cpp b/core/backends/lan/mdnsdiscovery.cpp index b8c48630f..9232aa2bb 100644 --- a/core/backends/lan/mdnsdiscovery.cpp +++ b/core/backends/lan/mdnsdiscovery.cpp @@ -57,8 +57,6 @@ void MdnsDiscovery::startAnnouncing() data[QStringLiteral("name")] = config.name().toUtf8(); data[QStringLiteral("type")] = config.deviceType().toString().toUtf8(); data[QStringLiteral("protocol")] = QString::number(NetworkPacket::s_protocolVersion).toUtf8(); - data[QStringLiteral("port")] = QString::number(LanLinkProvider::UDP_PORT).toUtf8(); // iOS needs ip and port here - data[QStringLiteral("ip")] = lanLinkProvider->localAddress().toString().toUtf8(); m_publisher->setTextData(data); connect(m_publisher, &KDNSSD::PublicService::published, [](bool successful) {