Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo8418 authored Dec 4, 2024
1 parent fd67be4 commit f580fa7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions flutter/web/v1/js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import * as sha256 from "fast-sha256";
import * as globals from "./globals";
import { decompress, mapKey, sleep } from "./common";

const PORT = 21116;
const PORT = 8417;
const HOSTS = [
"rs-sg.rustdesk.com",
"rs-cn.rustdesk.com",
"rs-us.rustdesk.com",
"bobohome.ignorelist.com",
"rd.bobohome.store",
];
let HOST = localStorage.getItem("rendezvous-server") || HOSTS[0];
const SCHEMA = "ws://";
Expand Down
8 changes: 4 additions & 4 deletions libs/hbb_common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ 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] = &["bobohome.ignorelist.com","rd.bobohome.store"];
pub const PUBLIC_RS_PUB_KEY: &str = "qwRw4z2gakEG5YQEVQTVqxlzryONTJqOAuoyCK3Lyzc=";

pub const RS_PUB_KEY: &str = match option_env!("RS_PUB_KEY") {
Some(key) if !key.is_empty() => key,
_ => PUBLIC_RS_PUB_KEY,
};

pub const RENDEZVOUS_PORT: i32 = 21116;
pub const RELAY_PORT: i32 = 21117;
pub const RENDEZVOUS_PORT: i32 = 8417;
pub const RELAY_PORT: i32 = 8418;

macro_rules! serde_field_string {
($default_func:ident, $de_func:ident, $default_expr:expr) => {
Expand Down
2 changes: 1 addition & 1 deletion libs/hbb_common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ mod test {

#[test]
fn test_mangle() {
let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(192, 168, 16, 32), 21116));
let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(192, 168, 16, 32), 8417));
assert_eq!(addr, AddrMangle::decode(&AddrMangle::encode(addr)));

let addr = "[2001:db8::1]:8080".parse::<SocketAddr>().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion vdi/host/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct SocketAddrArgs {
#[clap(short, long, default_value = "0.0.0.0")]
address: std::net::IpAddr,
/// IP port number
#[clap(short, long, default_value = "21116")]
#[clap(short, long, default_value = "8417")]
port: u16,
}

Expand Down

0 comments on commit f580fa7

Please sign in to comment.