diff --git a/core/backends/lan/mdns_wrapper.h b/core/backends/lan/mdns_wrapper.h index 7d29cd6d6..ca35f0588 100644 --- a/core/backends/lan/mdns_wrapper.h +++ b/core/backends/lan/mdns_wrapper.h @@ -15,6 +15,7 @@ #ifdef _WIN32 #include +#include #else #include #endif @@ -63,13 +64,13 @@ public: QByteArray serviceType; // ie: "<_service-type>._tcp.local." QByteArray serviceInstance; // ie: ".<_service-type>._tcp.local." QByteArray hostname; // ie: ".local." - sockaddr_in address_ipv4; - sockaddr_in6 address_ipv6; + struct sockaddr_in address_ipv4; + struct sockaddr_in6 address_ipv6; uint16_t port; QHash txtRecords; }; - // serviceType should be of the form _kdeconnect._udp.local + // serviceType must be of the form "_._.local" Announcer(const QString &serviceName, const QString &serviceType, uint16_t port); void putTxtRecord(const QString &key, const QString &value)