Check if MQTT remote IP is private (#5627)

This commit is contained in:
Eric Severance 2024-12-20 17:25:31 -08:00 committed by GitHub
parent 5fed679d33
commit 9a10907a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();