ssbc / ssb-conn

SSB plugin for establishing and managing peer connections
MIT License
16 stars 5 forks source link

Add config.hops to change peering behavior #17

Closed christianbundy closed 4 years ago

christianbundy commented 4 years ago

Problem: Peering with only people that we explicitly follow can cause problems when the people you follow don't have public IP addresses. Since this isn't configurable, interface developers have to resort to hacks that auto-connect to staged peers, which introduce lots of subtle bugs throughout the stack.

Solution: Make the peering behavior configurable, with a default where we only connect to peers that are we explicitly follow.

christianbundy commented 4 years ago

Ready for review again!

staltz commented 4 years ago

Sorry, took me some days to see this. Thanks!

christianbundy commented 4 years ago

Thanks for merging this, I'm excited for the next release! This is going to be a huge improvement over my current pile of garbage. 🙌

staltz commented 4 years ago

Released 0.17.0 Check some recent commits I made here for more info :)