mirror of https://github.com/arendst/Tasmota.git
Do an MDNS resolve before using the cached host.
MDNS shouldn't be aggressively cached, since the IP could change. This makes using DHCP for the host a lot easier.
This commit is contained in:
parent
ddcc92bdb4
commit
d2d07543b2
|
@ -516,7 +516,7 @@ void MqttReconnect(void)
|
||||||
#ifndef USE_MQTT_TLS
|
#ifndef USE_MQTT_TLS
|
||||||
#ifdef USE_DISCOVERY
|
#ifdef USE_DISCOVERY
|
||||||
#ifdef MQTT_HOST_DISCOVERY
|
#ifdef MQTT_HOST_DISCOVERY
|
||||||
if (!strlen(Settings.mqtt_host) && !MqttDiscoverServer()) { return; }
|
if (!MqttDiscoverServer() && !strlen(Settings.mqtt_host)) { return; }
|
||||||
#endif // MQTT_HOST_DISCOVERY
|
#endif // MQTT_HOST_DISCOVERY
|
||||||
#endif // USE_DISCOVERY
|
#endif // USE_DISCOVERY
|
||||||
#endif // USE_MQTT_TLS
|
#endif // USE_MQTT_TLS
|
||||||
|
|
Loading…
Reference in New Issue