Remove ip and port fields: iOS doesn't need them

This commit is contained in:
Albert Vaca Cintora 2023-06-28 13:37:14 +02:00
parent 1759a3f4f3
commit fcf4930b4f
2 changed files with 0 additions and 7 deletions

View file

@ -40,11 +40,6 @@ public:
void sendUdpIdentityPacket(const QList<QHostAddress> &addresses);
QHostAddress localAddress() const
{
return m_udpSocket.localAddress();
};
static void configureSslSocket(QSslSocket *socket, const QString &deviceId, bool isDeviceTrusted);
static void configureSocket(QSslSocket *socket);

View file

@ -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) {