Skip to content

bug: Very loud when bound to 127.0.0.1 #3244

Open
@dpc

Description

@dpc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingc-iroh

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions