aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 02:54:55 +0100
committertv <tv@krebsco.de>2026-10-28 02:54:55 +0100
commit16e9941f112a70effe7db80c378aab9d462ef034 (patch)
tree7895efc590531b3679e2d77e6d1d765bc6ccd12d /src/transport/mod.rs
parentfabdfc5f7e34033a4049fddb1876d7277291fc2e (diff)
move keepalive and firewall to paths
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index 147e560..f60a9f6 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -649,6 +649,13 @@ pub(crate) trait Transport: Send + Sync {
None
}
+ /// Whether the transport answers PINGs with PONGs itself (the paths layer,
+ /// `transport::paths`); if not (a bare transport, in tests), the node does. By
+ /// default not.
+ fn answers_pings(&self) -> bool {
+ false
+ }
+
/// Figures about the transport itself (`stats`). By default none.
fn stats(&self) -> stats::TransportStats {
stats::TransportStats::default()