From a2f8b4c5cfeb8dd54bb9c1ffb153b7789d409acc Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 9 Nov 2024 12:45:20 +0100 Subject: [PATCH] Try to also publish _ftp._tcp --- src/minidexed.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 5059ea0..2b4127d 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -2226,6 +2226,13 @@ void CMiniDexed::UpdateNetwork() { LOGPANIC ("Cannot publish mdns service"); } + static const char *ppText2[] = {"FTP Server", nullptr}; // TXT record strings + static constexpr const char *ServiceTypeFTP = "_ftp._tcp"; + if (!pmDNSPublisher->PublishService (ServiceName, CmDNSPublisher::ServiceTypeFTP, + 21, ppText2)) + { + LOGPANIC ("Cannot publish mdns service"); + } } else if (m_bNetworkReady && !bNetIsRunning) {