UNPKG

libp2p

Version:

JavaScript implementation of libp2p, a modular peer to peer network stack

18 lines 687 B
/** * Returns a default connection gater implementation that allows everything */ export function connectionGater(gater = {}) { return { denyDialPeer: async () => false, denyDialMultiaddr: async () => false, denyInboundConnection: async () => false, denyOutboundConnection: async () => false, denyInboundEncryptedConnection: async () => false, denyOutboundEncryptedConnection: async () => false, denyInboundUpgradedConnection: async () => false, denyOutboundUpgradedConnection: async () => false, filterMultiaddrForPeer: async () => true, ...gater }; } //# sourceMappingURL=connection-gater.js.map