Skip to content

Commit 5feee48

Browse files
committed
metrics: Add gossipsub protocols to identify allowlist
1 parent 8162658 commit 5feee48

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

misc/metrics/src/identify.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ use crate::protocol_stack;
3737
const ALLOWED_PROTOCOLS: &[StreamProtocol] = &[
3838
#[cfg(feature = "dcutr")]
3939
libp2p_dcutr::PROTOCOL_NAME,
40-
// #[cfg(feature = "gossipsub")]
41-
// TODO: Add Gossipsub protocol name
40+
#[cfg(feature = "gossipsub")]
41+
libp2p_swarm::StreamProtocol::new("/meshsub/1.2.0"),
42+
#[cfg(feature = "gossipsub")]
43+
libp2p_swarm::StreamProtocol::new("/meshsub/1.1.0"),
44+
#[cfg(feature = "gossipsub")]
45+
libp2p_swarm::StreamProtocol::new("/meshsub/1.0.0"),
46+
#[cfg(feature = "gossipsub")]
47+
libp2p_swarm::StreamProtocol::new("/floodsub/1.0.0"),
4248
libp2p_identify::PROTOCOL_NAME,
4349
libp2p_identify::PUSH_PROTOCOL_NAME,
4450
#[cfg(feature = "kad")]

0 commit comments

Comments
 (0)