Skip to content

Commit 6e72f20

Browse files
ramfox“ramfox”
andauthored
chore(iroh)!: change default relays to new "canary" relays (#3368)
## Description Now that we are on our final push to `1.0`, we are not going to be limiting ourselves to make network-level breaking changes. Because we know some users need network stability, they won't be upgrading until the `1.0` is released. So, we will need to maintain two sets of relays, one that stays on `0.35`, for the folks who won't be upgrading until `1.0`, and our new `0.9X` relays (which we will call our "canary" relays). This PR points our staging and prod default relays to the new canary relays. By our next release, we will also have separate staging canary relays, and so those values will change again. ## Breaking Changes The default prod and staging relays are now different: - NA (prod & staging): "use1-1.relay.n0.iroh-canary.iroh.link."; - EU (prod & staging): "euc1-1.relay.n0.iroh-canary.iroh.link."; - AP (prod): "aps1-1.relay.n0.iroh-canary.iroh.link."; ## Change checklist <!-- Remove any that are not relevant. --> - [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] All breaking changes documented. Co-authored-by: “ramfox” <“kasey@n0.computer”>
1 parent 056df1d commit 6e72f20

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

iroh/src/defaults.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ pub mod prod {
2323
use super::*;
2424

2525
/// Hostname of the default NA relay.
26-
pub const NA_RELAY_HOSTNAME: &str = "use1-1.relay.iroh.network.";
26+
pub const NA_RELAY_HOSTNAME: &str = "use1-1.relay.n0.iroh-canary.iroh.link.";
2727
/// Hostname of the default EU relay.
28-
pub const EU_RELAY_HOSTNAME: &str = "euw1-1.relay.iroh.network.";
28+
pub const EU_RELAY_HOSTNAME: &str = "euc1-1.relay.n0.iroh-canary.iroh.link.";
2929
/// Hostname of the default Asia-Pacific relay.
30-
pub const AP_RELAY_HOSTNAME: &str = "aps1-1.relay.iroh.network.";
30+
pub const AP_RELAY_HOSTNAME: &str = "aps1-1.relay.n0.iroh-canary.iroh.link.";
3131

3232
/// Get the default [`RelayMap`].
3333
pub fn default_relay_map() -> RelayMap {
@@ -86,9 +86,11 @@ pub mod staging {
8686
use super::*;
8787

8888
/// Hostname of the default NA relay.
89-
pub const NA_RELAY_HOSTNAME: &str = "staging-use1-1.relay.iroh.network.";
89+
// TODO(ramfox): for `0.91` release, make sure we have canary staging relays
90+
pub const NA_RELAY_HOSTNAME: &str = "use1-1.relay.n0.iroh-canary.iroh.link.";
9091
/// Hostname of the default EU relay.
91-
pub const EU_RELAY_HOSTNAME: &str = "staging-euw1-1.relay.iroh.network.";
92+
// TODO(ramfox): for `0.91` release, make sure we have canary staging relays
93+
pub const EU_RELAY_HOSTNAME: &str = "euc1-1.relay.n0.iroh-canary.iroh.link.";
9294

9395
/// Get the default [`RelayMap`].
9496
pub fn default_relay_map() -> RelayMap {

0 commit comments

Comments
 (0)