Skip to content

Commit

Permalink
fix(iroh-net-report): Only add QUIC ipv6 probes if we have an ipv6 in…
Browse files Browse the repository at this point in the history
…terface (#3133)

## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Just what it says on the tin. From pattern matching the rest of the
code, this seems like what it should be.

## Change checklist

- [x] Self-review.
  • Loading branch information
matheus23 authored Jan 15, 2025
1 parent 87e25f9 commit 9275d22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions iroh-net-report/src/reportgen/probes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ impl ProbePlan {
node: relay_node.clone(),
})
.expect("adding StunIpv6 probe to a StunIpv6 probe set");
quic_ipv6_probes
.push(Probe::QuicIpv6 {
delay,
node: relay_node.clone(),
})
.expect("adding QuicIpv6 probe to a QuicAddrIpv6 probe set");
}
quic_ipv6_probes
.push(Probe::QuicIpv6 {
delay,
node: relay_node.clone(),
})
.expect("adding QuicIpv6 probe to a QuicAddrIpv6 probe set");
}
plan.add_if_enabled(stun_ipv4_probes);
plan.add_if_enabled(stun_ipv6_probes);
Expand Down

0 comments on commit 9275d22

Please sign in to comment.