Commit Graph
5 Commits
Author SHA1 Message Date
Friedel Ziegelmayer bfc6ba0b2c refactor!: rename Node to Endpoint in all cases (#3542)
## Description

This normalizes naming, to call the main iroh handle, `Endpoint` and
instead of`Node` in all cases.

Closes https://github.com/n0-computer/iroh/issues/3301

## Breaking Changes

- All APIs that include `Node` now use `Endpoint`

- renamed
  - `iroh_relay::RelayNode` -> `RelayConfig`
  - `iroh_base::NodeAddr` -> `EndpointAddr`
  - `iroh_base::NodeAddr.node_id` -> `endpoint_id`
  - `iroh_base::NodeId` -> `EndpointId`
  - `iroh_base::NodeTicket` -> `EndpointTicket`
  - `iroh::Endpoint::node_addr` -> `iroh::Endpoint::addr`
  - `iroh::Endpoint::watch_node_addr` -> `iroh::Endpoint::watchaddr`
  - `iroh::Endpoint::node_id` -> `iroh::Endpoint::id`
2025-10-15 13:31:01 +00:00
Friedel ZiegelmayerandKasey dcbebe93f9 refactor(iroh)!: rework net_report (#3314)
## Description 

- Use more `Watchable` in  more places
- Drops STUN, ICMP and hairpin probes, they are not actually needed in
our world
- restructure report generation
- Keep QAD connections open, instead of recreating them on every report
- Removes `STUN` functionality from the relay server

**Fixes**

- https://github.com/n0-computer/iroh/issues/3315


## Breaking Changes

- removes `iroh_relay::protos::stun::StunError`
- removes `iroh_relay::server::testing::stun_config`
- removes `iroh_relay::protos::stun`
- removes `iroh_relay::quic::QuicClient::get_addr_and_latency`
- removes `DEFAULT_STUN_PORT`
 


## Depends on 

- [x] #3279 
- [x] https://github.com/n0-computer/net-tools/pull/27

---------

Co-authored-by: Kasey <kasey@n0.computer>
2025-06-24 13:31:24 +00:00
Kaseyand“ramfox” b2cb0cae8b feat(iroh-relay)!: add a QUIC server for QUIC address discovery to the iroh relay. (#2965)
## 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”>
2024-12-02 05:24:54 +00:00
4002c465af feat: remove derp regions in favor of direct urls (#1831)
Breaking Change: This change removes the notion of derp regions, and
simplifies it to derpers, which are identified by their URL.
Currently the URL is considered fully, including all path and query
params. This might change later depending on usage.




- [x] Needs https://github.com/n0-computer/chuck/pull/49

---------

Co-authored-by: Floris Bruynooghe <flub@n0.computer>
Co-authored-by: Kasey <kasey@n0.computer>
Co-authored-by: Ruediger Klaehn <rklaehn@protonmail.com>
2023-12-18 12:57:46 +00:00
Friedel Ziegelmayer 96903e776e feat: add configuration for derp regions
* feat: add configuration for derp regions

* add comment
2023-05-12 10:43:33 +02:00