Skip to content

Commit

Permalink
Check if MQTT remote IP is private (#5647)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Meadors <[email protected]>
  • Loading branch information
esev and thebentern authored Dec 23, 2024
1 parent 32719f6 commit 143e1d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mqtt/MQTT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ void MQTT::reconnect()
enabled = true; // Start running background process again
runASAP = true;
reconnectCount = 0;
isMqttServerAddressPrivate = isPrivateIpAddress(mqttClient.remoteIP());

publishNodeInfo();
sendSubscriptions();
Expand Down

0 comments on commit 143e1d1

Please sign in to comment.