-
Couldn't load subscription status.
- Fork 126
rustdesk-server: new, 1.1.14 #13093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stable
Are you sure you want to change the base?
rustdesk-server: new, 1.1.14 #13093
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| PKGNAME=rustdesk-server | ||
| PKGSEC=web | ||
| PKGDES="Self-host own RustDesk server" | ||
| PKGDEP="glibc" | ||
| BUILDDEP="llvm rustc" | ||
| USECLANG=1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| [Unit] | ||
| Description=RustDesk Server - HBBR (Relay Server) | ||
| After=network.target | ||
|
|
||
| [Service] | ||
| User=rustdesk-server | ||
| Group=rustdesk-server | ||
| WorkingDirectory=/var/lib/rustdesk-server | ||
| ExecStart=/usr/bin/hbbr | ||
| Restart=always | ||
| RestartSec=5 | ||
| LimitNOFILE=65535 | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| [Unit] | ||
| Description=RustDesk Server - HBBS (Signal Server) | ||
| After=network.target | ||
|
|
||
| [Service] | ||
| User=rustdesk-server | ||
| Group=rustdesk-server | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this specified by the upstream? If not, can we try |
||
| WorkingDirectory=/var/lib/rustdesk-server | ||
| ExecStart=/usr/bin/hbbs | ||
| Restart=always | ||
| RestartSec=5 | ||
| LimitNOFILE=65535 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, why? |
||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| u rustdesk-server - "RustDesk Server service user" /var/lib/rustdesk-server /usr/bin/nologin | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. daemon owner |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| d /var/lib/rustdesk-server 0750 rustdesk-server rustdesk-server - | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the read-bit for the whole group? Does the user need to be in this group to use the daemon? |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| From b8a200ae6496739c84cb21b4ccd7bbe3def5225a Mon Sep 17 00:00:00 2001 | ||
| From: ilikara <[email protected]> | ||
| Date: Thu, 16 Oct 2025 22:15:15 +0800 | ||
| Subject: [PATCH] AOSCOS: bump rustls-platform-verifier to fix build for | ||
| loongarch | ||
|
|
||
| Signed-off-by: ilikara <[email protected]> | ||
| --- | ||
| Cargo.toml | 2 +- | ||
| src/proxy.rs | 1 - | ||
| src/tcp.rs | 7 +++++-- | ||
| 3 files changed, 6 insertions(+), 4 deletions(-) | ||
|
|
||
| diff --git a/Cargo.toml b/Cargo.toml | ||
| index 58f54ac..aaddb8a 100644 | ||
| --- a/Cargo.toml | ||
| +++ b/Cargo.toml | ||
| @@ -51,7 +51,7 @@ default_net = { git = "https://github.com/rustdesk-org/default_net" } | ||
| machine-uid = { git = "https://github.com/rustdesk-org/machine-uid" } | ||
| [target.'cfg(not(any(target_os = "macos", target_os = "windows")))'.dependencies] | ||
| tokio-rustls = { version = "0.26", features = ["logging", "tls12", "ring"], default-features = false } | ||
| -rustls-platform-verifier = "0.3.1" | ||
| +rustls-platform-verifier = "0.5.0" | ||
| rustls-pki-types = "1.4" | ||
| [target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies] | ||
| tokio-native-tls ="0.3" | ||
| diff --git a/src/proxy.rs b/src/proxy.rs | ||
| index 34d2c51..b2d432a 100644 | ||
| --- a/src/proxy.rs | ||
| +++ b/src/proxy.rs | ||
| @@ -56,7 +56,6 @@ const MAXIMUM_RESPONSE_HEADERS: usize = 16; | ||
| const DEFINE_TIME_OUT: u64 = 600; | ||
|
|
||
| pub trait IntoUrl { | ||
| - | ||
| // Besides parsing as a valid `Url`, the `Url` must be a valid | ||
| // `http::Uri`, in that it makes sense to use in a network request. | ||
| fn into_url(self) -> Result<Url, ProxyError>; | ||
| diff --git a/src/tcp.rs b/src/tcp.rs | ||
| index 17f360f..000a862 100644 | ||
| --- a/src/tcp.rs | ||
| +++ b/src/tcp.rs | ||
| @@ -1,4 +1,4 @@ | ||
| -use crate::{bail, bytes_codec::BytesCodec, ResultType, config::Socks5Server, proxy::Proxy}; | ||
| +use crate::{bail, bytes_codec::BytesCodec, config::Socks5Server, proxy::Proxy, ResultType}; | ||
| use anyhow::Context as AnyhowCtx; | ||
| use bytes::{BufMut, Bytes, BytesMut}; | ||
| use futures::{SinkExt, StreamExt}; | ||
| @@ -62,7 +62,10 @@ impl DerefMut for DynTcpStream { | ||
| } | ||
| } | ||
|
|
||
| -pub(crate) fn new_socket(addr: std::net::SocketAddr, reuse: bool) -> Result<TcpSocket, std::io::Error> { | ||
| +pub(crate) fn new_socket( | ||
| + addr: std::net::SocketAddr, | ||
| + reuse: bool, | ||
| +) -> Result<TcpSocket, std::io::Error> { | ||
| let socket = match addr { | ||
| std::net::SocketAddr::V4(..) => TcpSocket::new_v4()?, | ||
| std::net::SocketAddr::V6(..) => TcpSocket::new_v6()?, | ||
| -- | ||
| 2.51.0 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-hosted RustDesk server