Remove ip and port fields: iOS doesn't need them
This commit is contained in:
parent
1759a3f4f3
commit
fcf4930b4f
2 changed files with 0 additions and 7 deletions
|
@ -40,11 +40,6 @@ public:
|
||||||
|
|
||||||
void sendUdpIdentityPacket(const QList<QHostAddress> &addresses);
|
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 configureSslSocket(QSslSocket *socket, const QString &deviceId, bool isDeviceTrusted);
|
||||||
static void configureSocket(QSslSocket *socket);
|
static void configureSocket(QSslSocket *socket);
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,6 @@ void MdnsDiscovery::startAnnouncing()
|
||||||
data[QStringLiteral("name")] = config.name().toUtf8();
|
data[QStringLiteral("name")] = config.name().toUtf8();
|
||||||
data[QStringLiteral("type")] = config.deviceType().toString().toUtf8();
|
data[QStringLiteral("type")] = config.deviceType().toString().toUtf8();
|
||||||
data[QStringLiteral("protocol")] = QString::number(NetworkPacket::s_protocolVersion).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);
|
m_publisher->setTextData(data);
|
||||||
|
|
||||||
connect(m_publisher, &KDNSSD::PublicService::published, [](bool successful) {
|
connect(m_publisher, &KDNSSD::PublicService::published, [](bool successful) {
|
||||||
|
|
Loading…
Reference in a new issue