Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-primary channel usage for non-PKC packets #5287

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Nov 8, 2024

Even if we have the public key of a node, for some packets we use the legacy channels (e.g., traceroute, NodeInfo, Routing) and those should use the channel corresponding to a node. In perhapsEncode(), the channel will be set back to 0 when we do use PKC. Also this clause will still pass if the client explicitly requested PKC:

!(p->pki_encrypted != true && p->channel > 0) &&

@GUVWAF GUVWAF requested a review from jp-bennett November 8, 2024 18:51
@fifieldt fifieldt merged commit 893efe4 into meshtastic:master Nov 9, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants