From 3d9a339c12c965bdd225d379b53843ccee5e7f57 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 16 Nov 2024 22:34:38 +0100 Subject: [PATCH] Also publish _ftp._tcp For, e..g., Cyberduck --- src/minidexed.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index db4aa0a..6593c2f 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -2240,6 +2240,12 @@ void CMiniDexed::UpdateNetwork() { LOGPANIC ("Cannot publish mdns service"); } + + static constexpr const char *ServiceTypeFTP = "_ftp._tcp"; + if (!pmDNSPublisher->PublishService (m_pConfig->GetNetworkHostname(), ServiceTypeFTP, 21)) + { + LOGPANIC ("Cannot publish mdns service"); + } m_bNetworkReady = true; } @@ -2259,6 +2265,14 @@ void CMiniDexed::UpdateNetwork() { LOGPANIC ("Cannot publish mdns service"); } + + static constexpr const char *ServiceTypeFTP = "_ftp._tcp"; + if (!pmDNSPublisher->PublishService (m_pConfig->GetNetworkHostname(), ServiceTypeFTP, 21)) + { + LOGPANIC ("Cannot publish mdns service"); + } + + m_bNetworkReady = true; LOGNOTE("Network connection reestablished.");