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

Prevent licensed users from rebroadcasting unlicensed traffic #6068

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

thebentern
Copy link
Contributor

As is (on 2.6), licensed users have rebroadcast_mode set to LOCAL_ONLY and this requires that all channels have no encryption keys, so we are effectively preventing encrypted traffic from traversing the mesh. We currently rebroadcast any plaintext traffic in good faith.
This PR takes the distinction a step further by asserting that if we have an unecrypted packet and we know that the user does not claim to be licensed, we should not rebroadcast that packet.

src/modules/RoutingModule.cpp Show resolved Hide resolved
src/modules/RoutingModule.cpp Outdated Show resolved Hide resolved
@thebentern thebentern requested a review from GUVWAF February 16, 2025 15:38
@thebentern thebentern merged commit 9ce19c5 into 2.6 Feb 17, 2025
4 checks passed
@thebentern thebentern deleted the licensed-rebroadcast branch February 17, 2025 02:18
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.

2 participants