Commit Graph
92 Commits
Author SHA1 Message Date
rustdeskandClaude Opus 5.5 511bba91f8 Match either form of an IPv4-mapped client at accept too
handle_connection checked the blocklist in plain IPv4 form only, so an
entry in the ::ffff: form, the one usage prints, let the client connect.
If that client was the leg parked first, relay() never checks it and the
whole session ran. It now matches either form, as relay() does.

The relay() test gains a client that is not listed, which must outlive
the first list check, and a new test covers the accept check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
2026-11-08 12:48:03 +08:00
rustdeskandClaude Opus 5.5 c5318a3c1e Keep IPv4-mapped list entries matching in relay()
The previous commit looked the lists up in the plain IPv4 form only, so
an entry in the ::ffff:a.b.c.d form stopped matching. That is the form
`usage` and the pairing logs print, so an admin copying an address from
them, or an existing list file holding one, lost the throttle and the
mid-session blocklist check. relay() now matches either form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
2026-11-07 20:40:19 +08:00
rustdeskandClaude Opus 5.5 f3d43ff192 Match IPv4 clients against the relay lists in their IPv4 form
hbbr listens dual-stack by default, so a direct IPv4 client reaches
relay() as ::ffff:a.b.c.d. relay() checked BLACKLIST and BLOCKLIST with
that form, while the lists hold the plain IPv4 that `ba` and `Ba` are
given. A blacklisted IPv4 client was therefore never throttled, and
adding it to the blocklist did not end its session. handle_connection
already normalizes with try_into_v4 for its accept-time check; relay()
now does the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
2026-11-07 13:50:16 +08:00
RustDeskandClaude Opus 5.5 0415b0e057 Bound message sizes on hbbs and hbbr (#747)
hbbs drops a connection whose frame header announces more than
MAX_MESSAGE_KB (default 64, capped at 65536) on 21115, 21116 and the
websocket 21118, and gives each websocket 8 KiB buffers instead of
tungstenite's 128 KiB default.

hbbr bounds the relay request to 128 KiB until the two legs pair, then
lifts the bound on framed legs and restores tungstenite's defaults on
websocket legs. That needs set_config on an accepted stream, so
tokio-tungstenite and tungstenite now come from the rustdesk-org forks.


Claude-Session: https://claude.ai/code/session_01JAxkkh9Gd5dwGW8vL9JNV8

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:24:28 +08:00
RustDeskandClaude Opus 5.5 98ffcee829 Bound console reply writes with a deadline (#746)
Since #717 the console sends its reply with write_all, which waits until
every byte is sent. A local client that sends a command and then stops
reading would hold the task and its socket forever. Give the write the
same 1 s deadline as the read above it, and log a reply that fails or
runs late instead of dropping the error.


Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:07:52 +08:00
RustDeskandClaude Opus 5.5 5e37f45dfe Fix/punch reqs bound (#713)
* fix(hbbs): bound the punch-request record store

PUNCH_REQS grew without limit; its dedupe scan only covers the newest 30
entries, so cycling 31 online peer ids from one source appended a record
per request for the lifetime of the process. Keep at most 10,000 entries,
evicting the oldest.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8

* feat(hbbs): make the punch-request record cap configurable

MAX_PUNCH_REQUESTS sets how many records the punch-requests console
command keeps (default 10000); 0 disables recording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8

* fix(hbbs): cap peer id length at 253 bytes

RegisterPk accepted ids up to a whole UDP datagram, so 31 registered
peers with ~64 KB ids still let the bounded punch-request store reach
hundreds of MB. Reject longer ids in RegisterPk and RegisterPeer, the
same bound the Pro server uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8

* feat(hbbs): keep 100000 punch-request records by default

With peer ids capped at 253 bytes a full store is roughly 45 MB at
worst, so a larger default keeps more console history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8

* test(hbbs): assert which punch-request records survive eviction

The length check alone passed if the newest record were evicted or new
records were dropped once full.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8

* test(hbbs): cover MAX_PUNCH_REQUESTS=0 in the punch-request test

At zero capacity the loop never ran and the new front/back asserts
unwrapped an empty queue. Make at least one request so the disabled
path is exercised, and only check eviction order when records are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-10 16:51:29 +08:00
RustDesk a7736be5e4 Delete .github/dependabot.yml 2026-08-07 16:56:36 +08:00
RustDesk 60645b0f70 Update build.yaml 2026-07-21 06:05:22 +08:00
RustDesk bd7bc52c43 Update build.yaml 2026-01-13 10:26:46 +08:00
RustDesk 04efb7033c Update README.md 2026-01-12 14:54:50 +08:00
RustDesk 9bae9f2f39 Update build.yaml 2026-01-12 13:28:04 +08:00
RustDesk 631618a6be Update build.yaml 2026-01-10 14:47:34 +08:00
RustDesk 796a75af5c Update README.md 2025-06-16 14:46:51 +08:00
RustDesk 2417c7ddd0 Update build.yaml 2025-05-11 20:54:24 +08:00
RustDesk 801826f36d Update build.yaml 2025-01-31 15:11:28 +08:00
RustDesk 66c78c23fe Update build.yaml 2025-01-21 01:33:42 +08:00
RustDesk 2d8f6ae4f4 Update changelog 2024-01-30 19:16:44 +08:00
RustDesk 324dfd6a1f fix https://github.com/rustdesk/rustdesk-server/issues/306 2024-01-30 19:02:30 +08:00
RustDesk 70242e6eb2 Update common.rs 2024-01-30 18:29:04 +08:00
RustDesk 42cdfb0885 Merge pull request #348 from paspo/pk-check
private key size check
2024-01-30 18:24:04 +08:00
RustDesk 0ebfc09f8b Merge pull request #333 from ledeuns/patch-1
Update mac_address
2023-12-25 08:49:52 +08:00
RustDesk fc775102ff Delete .github/workflows/test-selfhosted.yaml 2023-12-22 20:03:30 +08:00
RustDesk 891f388040 Merge pull request #328 from paspo/slim-docker-classic
minimal docker classic images
2023-12-07 17:09:11 +08:00
RustDesk 5133af1863 Merge pull request #320 from tschettervictor/patch-1
Update rustdesk-hbbs
2023-11-17 11:44:29 +08:00
RustDesk 272a094fde Delete ask-a-question.md 2023-08-08 10:18:04 +08:00
RustDesk b33d7954be Merge pull request #292 from dinger1986/master
Update README.md
2023-08-04 16:43:06 +08:00
RustDesk 33331be361 Merge pull request #289 from madpilot78/FreeBSD_rc_scripts_fixes
FreeBSD rc scripts fixes
2023-07-25 13:24:21 +08:00
RustDesk c871978475 Update setup.nsi 2023-06-13 10:04:47 +08:00
RustDesk 946845cd01 rust 1.70 2023-06-08 16:18:00 +08:00
RustDesk d8e3cb9e65 Merge pull request #249 from nsgundy/FixNoDirectConnectionWhenBothPeersOnLan
Fix no direct connection when both peers on LAN
2023-06-08 13:53:09 +08:00
RustDesk 482d7fb8cc Merge pull request #247 from Mr-Update/master
Create README-DE.md
2023-05-09 19:23:18 +08:00
RustDesk 1f7d3fa05c Merge pull request #236 from bahdotsh/bahdotsh/language-improvement
improved language and corrected spelling mistakes in README.md
2023-04-03 15:37:22 +08:00
RustDesk 336b281657 Merge pull request #235 from n-connect/master
Core dump fix and rc.d scripts optimisation for FreeBSD
2023-04-01 17:31:58 +08:00
RustDesk 7bbed69ad2 Merge pull request #232 from n-connect/master
U 20.04 for binary build & release
2023-03-30 00:43:49 +08:00
RustDesk b3fbb9e179 Merge pull request #231 from n-connect/master
Move from Ubuntu 18.04 VM (Github Actions)
2023-03-29 22:45:38 +08:00
RustDesk 74ff886900 Merge pull request #225 from n-connect/master
Adding log capability over syslog
2023-03-28 18:38:24 +08:00
RustDesk dc81956d42 Merge pull request #219 from FastAct/master
Create README-NL.md
2023-03-15 19:33:42 +08:00
RustDesk b83dae4cc4 Merge pull request #212 from n-connect/patch-1
Update build.yaml - adding FreeBSD build
2023-03-06 08:36:49 +08:00
RustDesk 13321b5a90 Merge pull request #210 from n-connect/master
Log files enables
2023-03-03 10:32:00 +08:00
RustDesk 9d524443ec Merge pull request #208 from n-connect/master
FreeBSD rcd scripts for hbbs & hbbr
2023-03-02 21:39:32 +08:00
RustDesk 12b57238d2 Merge pull request #207 from n-connect/master
Update Cargo.toml for FreeBSD build
2023-03-02 20:31:30 +08:00
RustDesk 49f10a288d Merge pull request #197 from elilchen/master
vite build
2023-02-16 23:05:27 +08:00
RustDesk 4fd83deaf1 Merge pull request #196 from elilchen/master
vite build
2023-02-16 22:23:16 +08:00
RustDesk 26d8c13fe4 Merge pull request #195 from elilchen/master
crt-static
2023-02-16 15:29:10 +08:00
RustDesk 6ad923d519 Merge pull request #194 from elilchen/master
fix issues #192
2023-02-16 14:04:48 +08:00
RustDesk 10bb0530ae Merge pull request #190 from elilchen/master
change icons
2023-02-14 22:52:42 +08:00
RustDesk 27d8f9cbb4 Merge pull request #188 from elilchen/master
UI
2023-02-12 09:23:42 +08:00
RustDesk 6a83ffea62 Merge pull request #187 from attie-argentum/encrypted_only
add '-k _' to hbbr if ENCRYPTED_ONLY is set
2023-02-05 12:26:12 +08:00
RustDesk 088a009078 Merge pull request #180 from paspo/deb_logdir_creation
fix logdir creation
2023-01-19 09:24:47 +08:00
RustDesk 338af1af9d Merge pull request #176 from botanicvelious/master
Add logging to the service files
2023-01-10 11:06:00 +08:00
RustDesk ebd73e1a09 remove RMEM and fix RUST_LOG 2023-01-08 11:31:13 +08:00
RustDesk 00e6a016f8 remove some env vars which normal users do not care 2023-01-08 11:29:43 +08:00
RustDesk 78d7e9437e Update test.yml 2023-01-07 12:50:24 +08:00
RustDesk ebbe5d5297 Update test.yml 2023-01-07 11:51:14 +08:00
RustDesk 1557203912 Merge pull request #82 from dlhxzb/fix-clippy-warning
Fix: clippy warning in rust 1.62.1
2023-01-07 00:28:29 +08:00
RustDesk 0e01cfcd3a Merge branch 'master' into fix-clippy-warning 2023-01-07 00:28:18 +08:00
RustDesk d7b2060a5b Merge pull request #86 from dlhxzb/listern-for-unix-signal
Feat: listen for unix signal
2023-01-06 11:11:19 +08:00
RustDesk 75a40412b4 Merge branch 'master' into listern-for-unix-signal 2023-01-06 11:09:52 +08:00
RustDesk 8f5ce48939 Merge pull request #112 from paspo/envvars
Env vars
2023-01-06 11:02:21 +08:00
RustDesk 753c774380 Merge pull request #156 from paspo/windows-build
test windows build
2022-11-26 08:57:37 +08:00
RustDesk 011b316183 Merge pull request #149 from JivinDotL/master
fix build issue 'error: non-binding let on a synchronization lock'
2022-11-20 22:59:54 +08:00
RustDesk fa2b42db76 Merge pull request #122 from fufesou/peer_online_state
query_onlines: trivial refactor
2022-10-04 14:54:08 +08:00
RustDesk 85af668a4f Merge pull request #88 from paspo/doctor
rustdesk-server doctor
2022-09-20 06:02:30 +08:00
RustDesk 74cb82c8a2 Merge pull request #111 from paspo/zip_perm
Artifacts in zip should be executables
2022-09-05 15:04:23 +07:00
RustDesk 6aa0019f8d Merge pull request #108 from miguelagve/patch-2
Update README.md for SELinux comment
2022-09-03 10:02:46 +08:00
RustDesk 4bdc205fca Merge pull request #91 from paspo/doc
readme update
2022-08-08 18:17:47 +08:00
RustDesk 9036b7b9fa Merge pull request #78 from paspo/pack-release
Zipped release binaries
2022-07-27 16:03:54 +08:00
RustDesk b1ad5c2e0c Merge pull request #77 from paspo/templates
Issue Templates
2022-07-27 09:08:57 +08:00
RustDesk baecd45f27 Merge pull request #76 from fufesou/peer_online_state
peer_online_state: serve online state
2022-07-27 00:43:16 +08:00
RustDesk 8c477c8cd0 Merge pull request #72 from paspo/debian
debian support
2022-07-25 23:05:17 +08:00
RustDesk dbab22cbbc Merge pull request #70 from paspo/docker_verify_keypair
keypair verification before container startup
2022-07-22 16:23:29 +08:00
RustDesk d11607fb6c Merge pull request #69 from paspo/fix-docker-manifest
fix github action on manual build
2022-07-22 10:39:37 +08:00
RustDesk 2d385d88d3 Merge pull request #68 from KreativeKrise/patch-1
Use same volumes for hbbs and hbbr
2022-07-21 22:47:37 +08:00
RustDesk 06bd1117f6 Merge pull request #67 from paspo/deb_package2
update deb packaging
2022-07-21 19:12:00 +08:00
RustDesk 670fb87ee1 Merge pull request #64 from paspo/deb_package
.deb packaging
2022-07-21 17:12:23 +08:00
RustDesk 50d7975ad8 Merge pull request #61 from paspo/secrets
managing encryption keys via docker secrets
2022-07-21 17:11:42 +08:00
RustDesk 003d9f1324 Merge pull request #62 from paspo/rustdesk-utils
small util for key management
2022-07-21 17:11:15 +08:00
RustDesk 57cbac7079 Merge pull request #53 from paspo/fix_service_start
Fix service start
2022-07-01 22:13:41 +08:00
RustDesk 2d5429640c Update README.md 2022-07-01 21:40:21 +08:00
RustDesk eaf57b4a40 Update README.md 2022-07-01 21:37:35 +08:00
RustDesk 81d65623a3 Update build.yaml 2022-07-01 12:14:44 +08:00
RustDesk 052788823f Merge pull request #50 from paspo/gh_actions
Fix github actions
2022-06-30 09:39:01 +08:00
RustDesk 6c6dba5a8a Merge pull request #43 from paspo/gh_actions
added build workflow
2022-06-29 01:02:44 +08:00
RustDesk c87e7bc848 Merge pull request #40 from paspo/new-dockerfile
test new Dockerfile with s6-overlay
2022-06-20 23:54:37 +08:00
RustDesk 59d82b4869 Update README.md 2022-06-15 10:43:31 +08:00
RustDesk f6792ddbca Merge pull request #25 from lukebarone/master
Updated readme; added docker-compose
2022-05-26 09:01:38 +08:00
RustDesk b5c71109b0 Update README.md 2022-05-13 21:23:57 +08:00
RustDesk b487badbc3 Update README.md 2022-05-13 21:23:34 +08:00
RustDesk 82ad556792 Update README.md 2022-05-13 19:51:24 +08:00
RustDesk 0977cf427e Merge pull request #21 from rustdesk/add-license-1
Create LICENSE
2022-05-12 22:11:43 +08:00
RustDesk b0b1981ac9 Create LICENSE 2022-05-12 22:11:06 +08:00
RustDesk a39c7edbf9 Update README.md 2022-05-12 21:20:44 +08:00