|
|
@ -2241,6 +2241,12 @@ void CMiniDexed::UpdateNetwork() |
|
|
|
LOGPANIC ("Cannot publish mdns service"); |
|
|
|
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; |
|
|
|
m_bNetworkReady = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2260,6 +2266,14 @@ void CMiniDexed::UpdateNetwork() |
|
|
|
LOGPANIC ("Cannot publish mdns service"); |
|
|
|
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."); |
|
|
|
LOGNOTE("Network connection reestablished."); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|