mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-16 07:42:37 +00:00
Check if MQTT remote IP is private (#5627)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user