Skip to content

Commit

Permalink
Try to also publish _ftp._tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Nov 9, 2024
1 parent 2a6d966 commit a2f8b4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/minidexed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a2f8b4c

Please sign in to comment.