Check if MQTT remote IP is private

This commit is contained in:
Eric Severance 2024-12-21 16:32:09 -08:00
parent 2fd5a4848a
commit afc7528ad7
No known key found for this signature in database
GPG Key ID: F19AABB5E1EA1B5F

View File

@ -457,6 +457,7 @@ void MQTT::reconnect()
enabled = true; // Start running background process again enabled = true; // Start running background process again
runASAP = true; runASAP = true;
reconnectCount = 0; reconnectCount = 0;
isMqttServerAddressPrivate = isPrivateIpAddress(mqttClient.remoteIP());
publishNodeInfo(); publishNodeInfo();
sendSubscriptions(); sendSubscriptions();