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

IP whitelist #1698

Merged
merged 4 commits into from
Jan 25, 2024
Merged

IP whitelist #1698

merged 4 commits into from
Jan 25, 2024

Conversation

sistemd
Copy link
Contributor

@sistemd sistemd commented Jan 24, 2024

Add optional IP whitelisting. By default all IP addresses are whitelisted.

Part of #1670.

@sistemd sistemd marked this pull request as ready for review January 24, 2024 17:54
@sistemd sistemd requested a review from a team as a code owner January 24, 2024 17:54
.iter()
.any(|net| net.contains(&peer_ip))
{
tracing::debug!(%connection_id, "Disconnected peer not in IP whitelist");
Copy link
Member

Choose a reason for hiding this comment

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

nit: connection_id not so informative, maybe add peer_ip here since it's available anyway?

Copy link
Member

@CHr15F0x CHr15F0x left a comment

Choose a reason for hiding this comment

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

👍

@sistemd sistemd force-pushed the sistemd/p2p-ip-whitelist branch from 8a71373 to e933242 Compare January 25, 2024 17:27
@sistemd sistemd merged commit 376ac43 into main Jan 25, 2024
7 checks passed
@sistemd sistemd deleted the sistemd/p2p-ip-whitelist branch January 25, 2024 17:52
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