Alex Potsides
|
ff32eba6a0
|
feat: connection gater (#1142)
Port of https://github.com/libp2p/go-libp2p-core/blob/master/connmgr/gater.go
Adds a new configuration key `connectionGater` which allows denying the dialing of certain peers, individual multiaddrs and the creation of connections at certain points in the connection flow.
Fixes: https://github.com/libp2p/js-libp2p/issues/175
Refs: https://github.com/libp2p/js-libp2p/issues/744
Refs: https://github.com/libp2p/js-libp2p/issues/769
Co-authored-by: mzdws <8580712+mzdws@user.noreply.gitee.com>
|
2022-01-25 16:27:01 +00:00 |
|