summaryrefslogtreecommitdiffstats
path: root/src/transport/identity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/identity.rs')
-rw-r--r--src/transport/identity.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/identity.rs b/src/transport/identity.rs
index 04375f6..af0fe74 100644
--- a/src/transport/identity.rs
+++ b/src/transport/identity.rs
@@ -504,6 +504,14 @@ impl Transport for IdentityTransport {
self.shared.destination(peer).is_some()
}
+ fn transports(&self) -> Vec<String> {
+ self.shared
+ .links
+ .iter()
+ .map(|link| link.scheme.to_owned())
+ .collect()
+ }
+
/// Each transport's, with its scheme.
fn discovered_seeds(&self) -> Vec<String> {
self.shared