mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 04:58:47 +03:00
Update the list of default relays
This commit is contained in:
@@ -39,16 +39,22 @@ const AUTOMATIC_ADDITION_DEBOUNCE_SECONDS: i64 = 60 * 60; // one hour
|
|||||||
/// How long we ignore a relay candidate after failing to connect to it:
|
/// How long we ignore a relay candidate after failing to connect to it:
|
||||||
const BACKOFF_PERIOD_FOR_NOT_WORKING_RELAY: i64 = 60 * 60 * 24 * 7; // one week
|
const BACKOFF_PERIOD_FOR_NOT_WORKING_RELAY: i64 = 60 * 60 * 24 * 7; // one week
|
||||||
|
|
||||||
|
/// The list of relays to which we onboard
|
||||||
|
/// if no other relays are provided via QR codes.
|
||||||
|
/// Please keep this list alphabetically sorted.
|
||||||
const DEFAULT_RELAY_CANDIDATES: &[&str] = &[
|
const DEFAULT_RELAY_CANDIDATES: &[&str] = &[
|
||||||
"chat.adminforge.de",
|
"chat.adminforge.de",
|
||||||
"tarpit.fun",
|
"chat.feld.me",
|
||||||
"sweetfern.net",
|
|
||||||
"chat.nuvon.app",
|
"chat.nuvon.app",
|
||||||
"nchrcht.la10cy.net",
|
|
||||||
"chat.sus.fr",
|
|
||||||
"chat.tinydispatch.org",
|
"chat.tinydispatch.org",
|
||||||
"chtml.ca",
|
"chat.vim.wtf",
|
||||||
"chatmail.uk",
|
"chatmail.uk",
|
||||||
|
"chtml.ca",
|
||||||
|
"mailchat.pl",
|
||||||
|
"nchrcht.la10cy.net",
|
||||||
|
"nine.testrun.org",
|
||||||
|
"sweetfern.net",
|
||||||
|
"tarpit.fun",
|
||||||
];
|
];
|
||||||
|
|
||||||
pub(crate) async fn init_transports_inner(
|
pub(crate) async fn init_transports_inner(
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ async fn test_init_transports_basic() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
async fn test_init_transports_use_extra_addrs() -> Result<()> {
|
async fn test_init_transports_use_relays_from_qr() -> Result<()> {
|
||||||
let t = &TestContext::new().await;
|
let t = &TestContext::new().await;
|
||||||
|
|
||||||
let skip_network = true;
|
let skip_network = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user