holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.06k stars 85 forks source link

whitelist #46

Closed LuKks closed 4 years ago

LuKks commented 4 years ago

Closes the second item of https://github.com/hyperswarm/hyperswarm/issues/44#issuecomment-557799041

mafintosh commented 4 years ago

I think it would be more flexible to add a peer validator function that returns true/false instead of the whitelist. Makes this a bit more flexible

LuKks commented 4 years ago

Is that ok? I actually tought exactly what you say but for some reason I had choosen similar behaviour than discovery-swarm.

mafintosh commented 4 years ago

Yea looks good I think. Was trying to fix the tests yesterday but will try testing this manually

mafintosh commented 4 years ago

Landed in master