iroh 1.4.0 - Security updates and better local networking

by ramfox

Welcome to a new release of iroh, a modular networking stack in Rust, for building direct connections between devices.

Iroh 1.4.0 is a maintenance release disguised as a minor release, due to minor API changes. It includes dependency updates for recently reported RUSTSEC advisories, makes iroh work better on local-only networks, and adds a batch of performance and correctness fixes to both iroh and iroh-relay.

We are very happy that many of the contributions we are writing about today come from outside contributors! More at the end about our AI policy and how you yourself can best contribute to iroh.

🚨 RUSTSEC Dependency Updates

This release updates rustls to fix the recently reported RUSTSEC advisories: RUSTSEC-2026-0346, RUSTSEC-2026-0347, RUSTSEC-2026-0348, and RUSTSEC-2026-0349. If you're running iroh-relay or iroh-dns-server, than you should rebuild from source or switch to the binaries in this release.

The latest versions of dumbpipe, sendme, and pigeons have already been released with these fixes.

See PR #4606 for more details.

X-Iroh-Endpoint-Id Header

Thanks to contributor ash0x72, the relay client now sends an X-Iroh-Endpoint-Id header. The old X-Iroh-NodeId header, a leftover from our previous NodeId naming, is deprecated. See PR #4586.

Better Local-Only Networking

When the network on your device changes, iroh usually waits until it has re-probed a relay before updating its addresses. The probe tells iroh what its public-facing IP addresses are now.

But on a local-only network with no relays, there's nothing to probe, and nothing to wait for. On a LAN, the addresses iroh finds by checking the local system are exactly the ones other devices on the network should dial.

Now, when your local network configuration changes and there are no relays, iroh updates the addresses it advertises immediately.

Many thanks to contributor ok300 for fixing this in PR #4605. Check it out for more details.

Performance & Correctness

Faster iroh-relay Startup

Thanks to contributor orielhaim for switching the LRU caches in iroh-relay and iroh-dns-server to a sparse cache that doesn't allocate its full capacity upfront.

See PR #4574 for more details.

Bounded Path Queues

Thanks to contributor damianmiles for fixing unbounded growth of a VecDeque that could happen when a path was waiting for more connection IDs or path IDs to become available.

See PR #4551 for more details.

Captive Portal Check Timeouts

One of the relay's jobs is to help clients detect whether they are behind a captive portal. Previously, the relay kept connections to its /generate_204 route open with a keep-alive and no timeout, so it would hold onto idle connections indefinitely. Connections close after one response and time out after 30 seconds.

See PR #4614 for more details.

Other Fixes

IPv6 Relays with no Domain Name

Previously, we couldn't run a net report against relays addressed by an IPv6 literal, because QAD probes passed the bracketed address on as the TLS server name. Thanks again to contributor William-Herly for the fix. See PR #4527.

HTTP Proxy Cleanup

We cleaned up and unified how iroh uses HTTP proxies with reqwest, with help from contributor fluffypony:

  • pkarr lookups and publishes now go through the endpoint's configured proxy, just like relay connections (PR #4595).
  • net report probes no longer pick up a proxy from the HTTP_PROXY/HTTPS_PROXY/ALL_PROXY environment variables when none is configured (PR #4592).
  • iroh-relay now sends correctly encoded Proxy-Authorization credentials (PR #4591).

Tracing in Async Contexts

We fixed a spot where a sync tracing API was being used in an async context. See PR #4582.

AI Policy

We have a new AI policy! Check it out here. To summarize: issues, PRs, and comments should have the breadth and depth of a normal, human-to-human conversation and should not be AI- generated. Any AI- generated content should exist between <details></details> tags. All contributors must be able to motivate and explain any code changes.

We've also adjusted our contributor guide. PRs that have not first been discussed in an issue and given the "ready-for-pr" label will likely be closed.

What's Next?

In a nice change of pace, we expect our next release to contain features! Stream affinity will enable you to choose or rank the paths used on a specific stream. This would allow you to specify that your stream responsible for sending, for example, media data must always travel over a direct connection, while your stream carrying control messages is allowed to flow over a relay if necessary.

As always, the full set of changes are in the changelog.

See you at the next release, and keep filing those bugs!

Iroh is a dial-any-device networking library that just works. Compose from an ecosystem of ready-made protocols to get the features you need, or go fully custom on a clean abstraction over dumb pipes. Iroh is open source, and already running in production on hundreds of thousands of devices.
To get started, take a look at our docs, dive directly into the code, or chat with us in our discord channel.