- Rust 89.5%
- NSIS 3.5%
- JavaScript 2.9%
- Shell 2.8%
- Dockerfile 0.4%
- Other 0.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Update rustls to 0.23.48 for security advisories Lock-only update of the rustls 0.23 stack that comes in through hbb_common: - rustls 0.23.42 -> 0.23.48 (RUSTSEC-2026-0285, -0346, -0348, -0349) - rustls-webpki 0.103.13 -> 0.103.17 (RUSTSEC-2026-0382) - webpki-roots 1.0.9 -> 1.0.12 and 0.26.7 -> 0.26.11 (RUSTSEC-2026-0381) - webpki-root-certs 1.0.9 -> 1.0.12 (RUSTSEC-2026-0383) No other package moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs * Replace the reqwest fork with reqwest 0.12.28 The rustdesk-org/reqwest fork is reqwest 0.11.23. It ties the build to rustls 0.21.12, rustls-webpki 0.101.7 and webpki-roots 0.25.4 (RUSTSEC-2026-0346, -0349, -0104, -0098, -0099, -0382, -0381) and to h2 0.3.26 (RUSTSEC-2026-0258). The fork only removed a debug log line, and the client already uses reqwest 0.12 from crates.io. Here it serves only the daily version check. reqwest 0.12.16 and later read the macOS and Windows system proxy only with the system-proxy feature, so it is enabled there to keep that behaviour. tower-layer and tower-service move to 0.3.3 because tower 0.5 needs them; nothing else outside the reqwest stack changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .cargo | ||
| .github | ||
| .vscode | ||
| debian | ||
| docker | ||
| docker-classic | ||
| docs | ||
| kubernetes | ||
| libs | ||
| rcd | ||
| src | ||
| systemd | ||
| tests | ||
| ui | ||
| .env | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| AGENTS.md | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| db_v2.sqlite3 | ||
| docker-compose.yml | ||
| LICENSE | ||
| README.md | ||
RustDesk Server Program
Configuration & environment variables
Self-host your own RustDesk server, it is free and open source.
Important
Need more features? RustDesk Server Pro might suit you better.
Want to develop your own server? Start with rustdesk-server-demo, a simpler starting point than this repository.
How to build manually
cargo build --release
Three executables will be generated in target/release.
- hbbs - RustDesk ID/Rendezvous server
- hbbr - RustDesk relay server
- rustdesk-utils - RustDesk CLI utilities
You can find updated binaries on the Releases page.
Configuration
hbbs and hbbr can be configured with command-line flags, environment
variables, or an .env / config file. Run hbbs --help or hbbr --help to see
the available flags.
The most common options:
| Option | Flag | Env var | Applies to | Purpose |
|---|---|---|---|---|
| Key | -k |
KEY |
hbbs, hbbr | hbbs loads/generates one by default |
| Bind address | -b |
BIND |
hbbs, hbbr | Local IP address to listen on (default: all interfaces; requires 1.1.17+) |
| Port | -p |
PORT |
hbbs, hbbr | Listening port (hbbs 21116, hbbr 21117) |
| Relay servers | -r |
RELAY-SERVERS |
hbbs | Override when the relay uses a different address or a non-standard port |
| Force relay | — | ALWAYS_USE_RELAY |
hbbs | Y disables direct connections |
| Log level | — | RUST_LOG |
hbbs, hbbr | e.g. debug (default info) |
See docs/environment-variables.md for the full list of variables, the file/flag/env precedence rules, database and relay bandwidth tuning, Docker image variables, and examples.
Installation
Please follow this doc