Also publish _ftp._tcp

For, e..g., Cyberduck
network
probonopd 5 days ago committed by GitHub
parent ad5140a1f6
commit 3d9a339c12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      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.");

Loading…
Cancel
Save