-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
network blocking #61
base: master
Are you sure you want to change the base?
network blocking #61
Conversation
this is really dope :3 looks like it is missing logic to show messages on clients when e.g. someone i trust (mod/admin) has blocked someone, see the existing logic for (un)hide/mod/admin cabal-client/src/cabal-details.js Lines 717 to 764 in ee626cd
|
Woo! Network-level blocking! Does this also undownload the blocked peer's feed? Such as in the case of an illegal number attack, spamming, etc. |
This patch doesn't yet delete the remote feed and refuse to replicate it again. That is the second part of implementing this feature fully which will require some changes upstream in multifeed. |
Noted, thanks 👍 |
This patch uses the swarm
opts.verify
hook andcabal.removeConnection()
to implement network-level blocking of peers. This is only part of what we'll need for a full implementation of blocking since you can still get the content from blocked peers via other peers. I also had to make some room in the command-handling to support blocks as well as other arbitrary flags. Before these changes any flags that weren't hide/unhide wouldn't show up correctly.depends on cabal-club/cabal-core#96