Skip to content

Commit

Permalink
Replace rendezvous servers incl. pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
oxmie committed May 29, 2024
1 parent ab1e747 commit 6b9ddf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions flutter/web/js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import { decompress, mapKey, sleep } from "./common";

export const PORT = 21116;
const HOSTS = [
"rs-sg.rustdesk.com",
"rs-cn.rustdesk.com",
"rs-us.rustdesk.com",
"rustdesk.datenkollektiv.net",
];
let HOST = localStorage.getItem("rendezvous-server") || HOSTS[0];
const SCHEMA = "ws://";
Expand Down Expand Up @@ -158,7 +156,7 @@ export default class Connection {

async secure(pk: Uint8Array | undefined) {
if (pk) {
const RS_PK = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
const RS_PK = "UUYfYRXO6JViP3u0koRSrbmyN6RDIsu4IHBPbrGeOZI=";
try {
pk = await globals.verify(pk, localStorage.getItem("key") || RS_PK);
if (pk) {
Expand Down
4 changes: 2 additions & 2 deletions libs/hbb_common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const CHARS: &[char] = &[
'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
];

pub const RENDEZVOUS_SERVERS: &[&str] = &["rs-ny.rustdesk.com"];
pub const PUBLIC_RS_PUB_KEY: &str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
pub const RENDEZVOUS_SERVERS: &[&str] = &["rustdesk.datenkollektiv.net"];
pub const PUBLIC_RS_PUB_KEY: &str = "UUYfYRXO6JViP3u0koRSrbmyN6RDIsu4IHBPbrGeOZI=";

pub const RS_PUB_KEY: &str = match option_env!("RS_PUB_KEY") {
Some(key) if !key.is_empty() => key,
Expand Down

0 comments on commit 6b9ddf6

Please sign in to comment.