We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7071eca commit 33796a8Copy full SHA for 33796a8
src/events.rs
@@ -134,8 +134,12 @@ pub async fn send_events(events: Vec<packets::Event>) -> Result<()> {
134
}),
135
mic: None,
136
};
137
- packet.encrypt(get_encryption_key(Aes128Key::null()))?;
138
- packet.set_mic(get_signing_key(conf.mesh.signing_key))?;
+ packet.encrypt(get_encryption_key(conf.mesh.root_key))?;
+ packet.set_mic(if conf.mesh.signing_key != Aes128Key::null() {
139
+ conf.mesh.signing_key
140
+ } else {
141
+ get_signing_key(conf.mesh.root_key)
142
+ })?;
143
144
let pl = gw::DownlinkFrame {
145
downlink_id: random(),
0 commit comments