mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-11-27 00:04:24 +00:00
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