mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-05-06 22:06:04 +02:00
Simplify default_hostname handling
This commit is contained in:
@@ -104,13 +104,7 @@ struct MDNSConfig_t : BaseConfigModel
|
|||||||
void load()
|
void load()
|
||||||
{
|
{
|
||||||
// Default hostname comes from GENERAL_ADVERTISED_NAME (unified advertised name)
|
// Default hostname comes from GENERAL_ADVERTISED_NAME (unified advertised name)
|
||||||
std::string default_hostname =
|
std::string default_hostname = CONFIG_GENERAL_ADVERTISED_NAME;
|
||||||
#ifdef CONFIG_GENERAL_ADVERTISED_NAME
|
|
||||||
CONFIG_GENERAL_ADVERTISED_NAME;
|
|
||||||
#else
|
|
||||||
"openiristracker";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (default_hostname.empty())
|
if (default_hostname.empty())
|
||||||
{
|
{
|
||||||
default_hostname = "openiristracker";
|
default_hostname = "openiristracker";
|
||||||
|
|||||||
Reference in New Issue
Block a user