mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 02:01:20 +00:00
Wildcard IP addresses (e.g. 0.0.0.0) are used to listen on all host interfaces. To report those addresses such that clients know about them and can actually make use of them we use the `get_if_addrs` crate and maintain a collection of addresses. We report the whole expansion at the very beginning of the listener stream with `ListenerEvent::NewAddress` events and add new addresses should they come to our attention. What remains to be done is to potentially allow users to filter IP addresses, for example the local loopback one, and to detect expired addresses not only if a new address is discovered.
Central repository for work on libp2p
This repository is the central place for Rust development of the libp2p spec.
Warning: While we are trying our best to be compatible with other libp2p implementations, we cannot guarantee that this is the case considering the lack of a precise libp2p specifications.
Documentation
This repository includes a façade crate named libp2p
, which reexports the rest of the repository.
For documentation, you are encouraged to clone this repository or add libp2p
as a dependency in
your Cargo.toml and run cargo doc
.
[dependencies]
libp2p = "0.2.2"
Notable users
(open a pull request if you want your project to be added here)
Languages
Rust
99.8%
JavaScript
0.2%