Skip to content

Commit 9275d22

Browse files
authored
fix(iroh-net-report): Only add QUIC ipv6 probes if we have an ipv6 interface (#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.
1 parent 87e25f9 commit 9275d22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

iroh-net-report/src/reportgen/probes.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,13 @@ impl ProbePlan {
265265
node: relay_node.clone(),
266266
})
267267
.expect("adding StunIpv6 probe to a StunIpv6 probe set");
268+
quic_ipv6_probes
269+
.push(Probe::QuicIpv6 {
270+
delay,
271+
node: relay_node.clone(),
272+
})
273+
.expect("adding QuicIpv6 probe to a QuicAddrIpv6 probe set");
268274
}
269-
quic_ipv6_probes
270-
.push(Probe::QuicIpv6 {
271-
delay,
272-
node: relay_node.clone(),
273-
})
274-
.expect("adding QuicIpv6 probe to a QuicAddrIpv6 probe set");
275275
}
276276
plan.add_if_enabled(stun_ipv4_probes);
277277
plan.add_if_enabled(stun_ipv6_probes);

0 commit comments

Comments
 (0)