libp2p

Crate upnp

Available on crate feature upnp and non-WebAssembly only.
Expand description

Implementation of UPnP port mapping for libp2p.

This crate provides a tokio::Behaviour which implements the libp2p_swarm::NetworkBehaviour trait. This struct will automatically try to map the ports externally to internal addresses on the gateway.

Modules§

Enums§

  • The event produced by Behaviour.