mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-15 04:11:19 +00:00
This commit reverts the previous metrics behavior. Namely: - adhering to --metrics-path flag - listening on 0.0.0.0:8888 instead of 127.0.0.1:8080 Note that 8888 is the default IPFS debug (aka. metrics) port. See https://github.com/mxinden/rust-libp2p-server/blob/master/src/metric_server.rs for previous behavior. Pull-Request: #4392.
Rust libp2p Server
A rust-libp2p based server implementation running:
Usage
cargo run -- --help
A rust-libp2p server binary.
Usage: libp2p-server [OPTIONS] --config <CONFIG>
Options:
--config <CONFIG> Path to IPFS config file
--metrics-path <METRICS_PATH> Metric endpoint path [default: /metrics]
--enable-kademlia Whether to run the libp2p Kademlia protocol and join the IPFS DHT
--enable-autonat Whether to run the libp2p Autonat protocol
-h, --help Print help
cargo run -- --config ~/.ipfs/config
Local peer id: PeerId("12D3KooWSa1YEeQVSwvoqAMhwjKQ6kqZQckhWPb3RWEGV3sZGU6Z")
Listening on "/ip4/127.0.0.1/udp/4001/quic"
[...]