iroh icon indicating copy to clipboard operation
iroh copied to clipboard

bug: Very loud when bound to 127.0.0.1

Open dpc opened this issue 9 months ago • 1 comments

Describe the bug

In our test suite, we bind Iroh endpoints to 127.0.0.1 and use ticket overrides to avoid dependencies on external network and force quick and reliable connections.

However, this triggers some internal codepaths that do not expect this situation.

It's not a big deal, things still work fine, just the logs get a lot of warns from Iroh.

Relevant Logs

2025-03-21T16:40:44.644059Z  WARN ep{me=45ccca1685}:magicsock:net_report.actor:reportgen.actor:probe: iroh_net_report::reportgen: probe failed: Fai
led to send STUN request: StunIpv4: Invalid argument (os error 22) probe=StunIpv4 { delay: 0ns, node: RelayNode { url: RelayUrl("https://use1-1.rel
ay.iroh.network./"), stun_only: false, stun_port: 3478, quic: Some(RelayQuicConfig { port: 7842 }) } }

Expected behavior

Maybe detect 127.0.0.1 and [::1] and just skip all probes?

Platform(s) Linux desktip/server.

dpc avatar Mar 21 '25 17:03 dpc