Check if MQTT remote IP is private (#5627)

This commit is contained in:
Eric Severance
2024-12-20 19:25:31 -06:00
committed by GitHub
co-authored by GitHub
parent 5fed679d33
commit 9a10907a2d
+3
View File
@@ -438,6 +438,9 @@ void MQTT::reconnect()
enabled = true; // Start running background process again
runASAP = true;
reconnectCount = 0;
#if !defined(ARCH_PORTDUINO)
isMqttServerAddressPrivate = isPrivateIpAddress(mqttClient.remoteIP());
#endif
publishNodeInfo();
sendSubscriptions();