This commit is contained in:
Konstantin Bogdanov 2024-06-28 05:13:56 +02:00
parent 319aa06d1b
commit bbfdf1698f
Signed by: thevar1able
GPG Key ID: DB399448D9FE52F1

View File

@ -6,6 +6,9 @@ namespace
{
std::string getFQDNOrHostNameImpl()
{
#if defined(OS_DARWIN)
return Poco::Net::DNS::hostName();
#else
try
{
return Poco::Net::DNS::thisHost().name();
@ -14,6 +17,7 @@ namespace
{
return Poco::Net::DNS::hostName();
}
#endif
}
}