Skip to content

Commit

Permalink
Changed rendezvous server address and relay address
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky-NiniKo committed Apr 4, 2023
1 parent f6a4c0d commit 7efd88a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::path::PathBuf;
use std::pin::Pin;
use std::task::{Context, Poll};

use magic_wormhole::{Code, transfer, transit, Wormhole, AppConfig, rendezvous::DEFAULT_RENDEZVOUS_SERVER};
use magic_wormhole::{Code, transfer, transit, Wormhole, AppConfig};


pub async fn send(file: web_sys::File) {
Expand Down Expand Up @@ -43,7 +43,7 @@ fn gen_relay_hints() -> Vec<transit::RelayHint> {
let mut relay_hints: Vec<transit::RelayHint> = vec![];
if relay_hints.is_empty() {
relay_hints.push(
transit::RelayHint::from_urls(None, [transit::DEFAULT_RELAY_SERVER.parse().unwrap()])
transit::RelayHint::from_urls(None, ["wss://relay.mw.leastauthority.com".parse().unwrap()])
.unwrap(),
)
}
Expand All @@ -52,7 +52,7 @@ fn gen_relay_hints() -> Vec<transit::RelayHint> {
pub fn gen_app_config() -> AppConfig<transfer::AppVersion> {
AppConfig {
id: transfer::APPID,
rendezvous_url: Cow::from(DEFAULT_RENDEZVOUS_SERVER),
rendezvous_url: Cow::from("wss://mailbox.mw.leastauthority.com/v1"),
app_version: transfer::AppVersion {},
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use yew::{html, Component, Context, Html, events::Event, TargetCast};
use web_sys::{HtmlInputElement, File};
use wasm_bindgen_futures::spawn_local;

#[derive(Debug)]
pub enum Msg {
Files(Event),
Receive(Event),
Expand Down

0 comments on commit 7efd88a

Please sign in to comment.