mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 18:09:04 +00:00
Check if MQTT remote IP is private (#5627)
This commit is contained in:
parent
5fed679d33
commit
9a10907a2d
@ -438,6 +438,9 @@ 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;
|
||||||
|
#if !defined(ARCH_PORTDUINO)
|
||||||
|
isMqttServerAddressPrivate = isPrivateIpAddress(mqttClient.remoteIP());
|
||||||
|
#endif
|
||||||
|
|
||||||
publishNodeInfo();
|
publishNodeInfo();
|
||||||
sendSubscriptions();
|
sendSubscriptions();
|
||||||
|
Loading…
Reference in New Issue
Block a user