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

Reject peers with/without specific protocols #49

Closed
dariusc93 opened this issue Mar 21, 2023 · 1 comment
Closed

Reject peers with/without specific protocols #49

dariusc93 opened this issue Mar 21, 2023 · 1 comment
Labels
p:low Low Priority

Comments

@dariusc93
Copy link
Owner

There may be cases were one may would want to reject that connect with or without a specific protocol. This may be to whitelist specific protocols from connecting (eg maybe to disconnect peers with additional or abnormal protocols), or maybe to disconnect peers that dont supply Identify behaviour, etc.

Due to rust-libp2p not supporting providing the information directly, we would have to rely on Identify and the Info that is injected into PeerBook to cross check protocols.

@dariusc93 dariusc93 added the p:low Low Priority label Mar 21, 2023
@dariusc93
Copy link
Owner Author

It would be best to do this in custom behaviours instead of internally in rust-ipfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:low Low Priority
Projects
None yet
Development

No branches or pull requests

1 participant