mirror of
https://github.com/chatmail/core.git
synced 2026-10-19 19:33:35 +03:00
feat: use stable community-provided iroh relay instead of N0's public one
for now that's nine.testrun.org because it's reliable and has a clear privacy statement.
This commit is contained in:
@@ -248,9 +248,12 @@ impl Context {
|
||||
{
|
||||
RelayMode::Custom(RelayUrl::from(relay_url).into())
|
||||
} else {
|
||||
// FIXME: this should be RelayMode::Disabled instead.
|
||||
// Currently using default relays because otherwise Rust tests fail.
|
||||
RelayMode::Default
|
||||
// FIXME: this should be RelayMode::Disabled instead once
|
||||
// - multi-relay usage is more common so "no-iroh-relay" is rare
|
||||
// - tests can deal with it (best after Iroh 1.0 upgrade)
|
||||
// For now, if the chatmail relay does not announce an iroh relay,
|
||||
// fall back to a stable community operated Iroh 0.35 relay.
|
||||
RelayMode::Custom(RelayUrl::from(Url::parse("https://nine.testrun.org")?).into())
|
||||
};
|
||||
|
||||
let endpoint = Endpoint::builder()
|
||||
|
||||
Reference in New Issue
Block a user