Add Iroh peer ping
This commit is contained in:
parent
8ab3ef004e
commit
679eeb48a3
15 changed files with 619 additions and 18 deletions
|
|
@ -107,6 +107,8 @@ struct PeerCardSigningPayload {
|
|||
pub struct EndpointCandidate {
|
||||
pub endpoint_id: String,
|
||||
pub relay_url: Option<String>,
|
||||
#[serde(default)]
|
||||
pub direct_addresses: Vec<String>,
|
||||
pub source: DiscoverySource,
|
||||
}
|
||||
|
||||
|
|
@ -198,6 +200,7 @@ mod tests {
|
|||
vec![EndpointCandidate {
|
||||
endpoint_id: "endpoint:iroh".to_owned(),
|
||||
relay_url: None,
|
||||
direct_addresses: vec!["127.0.0.1:12345".to_owned()],
|
||||
source: DiscoverySource::Manual,
|
||||
}],
|
||||
UnixMillis(1),
|
||||
|
|
|
|||
Loading…
Reference in a new issue