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

Don't use PKC on a non-primary channel unless specifically requested #4715

Merged
merged 2 commits into from
Sep 15, 2024

Conversation

jp-bennett
Copy link
Collaborator

Since we still have some uses where we want to send to a specific node over a specific channel, this attempts to catch those cases and honor the request. Specifically the admin and serial channel.

// is not in the local nodedb
if (
// Don't use PKC with Ham mode
!owner.is_licensed &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we can encapsulate some of the shared logic for detecting PKC intent for a packet into a method that returns a bool, since the criteria gets fairly lengthy and could grow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably a few places through the code where massive if statements could use this treatment.

@thebentern thebentern merged commit ff8baa1 into master Sep 15, 2024
107 checks passed
@thebentern thebentern deleted the too-much-pkc branch September 15, 2024 14:26
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.

3 participants