mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 18:47:40 +00:00
woops - was too fast there
This commit is contained in:
parent
65aad62702
commit
e73ae7cdac
@ -221,6 +221,8 @@ ErrorCode Router::send(MeshPacket *p)
|
|||||||
if (p->which_payload_variant == MeshPacket_decoded_tag) {
|
if (p->which_payload_variant == MeshPacket_decoded_tag) {
|
||||||
ChannelIndex chIndex = p->channel; // keep as a local because we are about to change it
|
ChannelIndex chIndex = p->channel; // keep as a local because we are about to change it
|
||||||
|
|
||||||
|
bool shouldActuallyEncrypt = true;
|
||||||
|
|
||||||
#if HAS_WIFI || HAS_ETHERNET
|
#if HAS_WIFI || HAS_ETHERNET
|
||||||
if(moduleConfig.mqtt.enabled) {
|
if(moduleConfig.mqtt.enabled) {
|
||||||
// check if we should send decrypted packets to mqtt
|
// check if we should send decrypted packets to mqtt
|
||||||
@ -235,7 +237,6 @@ ErrorCode Router::send(MeshPacket *p)
|
|||||||
* => so we only decrypt mqtt if they have a custom mqtt server AND mqtt_encryption_enabled is FALSE
|
* => so we only decrypt mqtt if they have a custom mqtt server AND mqtt_encryption_enabled is FALSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool shouldActuallyEncrypt = true;
|
|
||||||
if (*moduleConfig.mqtt.address && !moduleConfig.mqtt.encryption_enabled) {
|
if (*moduleConfig.mqtt.address && !moduleConfig.mqtt.encryption_enabled) {
|
||||||
shouldActuallyEncrypt = false;
|
shouldActuallyEncrypt = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user