mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-30 00:01:16 +00:00
## Description This PR adds a QUIC endpoint to the relay server that can do QUIC address discovery. It also contains structs/functions for properly doing the Client side interaction for this process. Also, this adjust the `RelayNode` to include configuration on how to speak to the QUIC endpoint on the relay server. QUIC is disabled by default and requires a `TlsConfig` to be configured in order to work. closes #2964 ## Breaking Changes - `iroh_base::relay_map::RelayNode` now has field `quic` that takes a `Option<iroh_base::relay_map::QuicConfig>` - `iroh::test_utils::run_relay_server_with(stun: Option<StunConfig>)` => `iroh::test_utils::run_relay_server_with(stun: Option<StunConfig>, quic: bool)` - when `quic` is `true`, it will start a quic server for QUIC address discovery, that has self signed tls certs for testing. - `iroh_relay::server::ServerConfig` has field `quic` that takes a `Option<iroh_relay::server::QuicConfig>` - `iroh_relay::server::TlsConfig.quic_bind_addr` is a new field that takes a `SocketAddr` - `iroh_relay::server::TlsConfig.server_config` is a new field that takes a `rustls::ServerConfig` - field `config` has been removed from variant `iroh_relay::server::CertConfig::LetsEncrypt` - variant `iroh_relay::server::CertConfig::LetsEncrypt` has a new field `state` that takes a `tokio_rustls_acme::AcmeState<EC, EA>` - variant `iroh_relay::server::CertConfig::Manual` no longer has field `private_key` ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: “ramfox” <“kasey@n0.computer”>
6 lines
76 B
TOML
6 lines
76 B
TOML
[[relay_nodes]]
|
|
url = "https://foo.bar"
|
|
stun_only = false
|
|
stun_port = 1244
|
|
|