yuanyuanxiang commented on pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:38:48 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports

必须修复 2:限流按的是反代 IP,不是设备 IP。 SetPeerName(fwd) 在这里才把真实 IP 写回,但 accept 阶段的 IsIPBanned / RecordConnection 早已用 getpeername 的地址执行完,改不回来。

后果分…

yuanyuanxiang commented on pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:38:48 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports

这道 WS_Handshaking 的 fail-closed 判断位置不对:它排在 TLS_Ready 分支之后。WSS 升级期间 tlsState 已经是 TLS_Ready,一旦真有 IORead 进来,会先走解密分支、再进 DispatchPlain(…

yuanyuanxiang commented on pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:38:48 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports

必须修复 3:IsConnected() ≠ 登录成功。 这里只证明 TCP + TLS + WS 握手完成,服务端尚未处理登录包。若新入口能建连但登录始终不被接受(选错后端 / 反代指到别的 WS 服务 / 服务端登录阶段静默丢弃)…

yuanyuanxiang commented on pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:38:48 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports

必须修复 1:握手无超时。 这里同步调用 m_ws.Handshake,而 socket 上没有 SO_RCVTIMEO/SO_SNDTIMEO(本函数前面只设了 TCP_NODELAY 与 SO_KEEPALIVE)。Handshake 逐字节 recv 等 101,若对…

yuanyuanxiang commented on pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:38:48 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports

这里 TlsReload 失败只打日志,随后仍然把入口切到 WSS 并断连。如果下发的 PEM 加载不了,客户端会进入 TlsLoadError() 的 fail-closed 状态——新入口连不上,只能等 5 分钟自动回退(而且受总评第 3…

yuanyuanxiang commented on pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:38:48 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports

掩码用未播种的 rand(),且生成在 m_sendMtx 之外。掩码不承担安全职责,但 RFC 6455 §5.3 要求它来自强熵源;另外 HttpMask 构造函数里有 srand(time(nullptr)),会在同进程内重置全局序列,收发两线程…

yuanyuanxiang commented on pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:38:36 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports

审查结论:功能完整,但有 3 处必须修复

先说验证情况,再说问题。

已验证

  • server/go:go build ./... 通过,go test ./... 全绿;TestWebSocketUpgradeAndTunnel / PingPongAndClose /…
yuanyuanxiang created pull request yuanyuanxiang/SimpleRemoter#5 2026-10-30 16:30:16 +00:00
Feature: WebSocket transport for clients behind restricted outbound ports
yuanyuanxiang pushed to ws_tls at yuanyuanxiang/SimpleRemoter 2026-10-30 16:30:04 +00:00
99db28e2e2 Feature: Let the operator switch a live client's transport from the online list
cc891e3670 Feature: Sniff WebSocket upgrades on the MFC server's device port
d4f312c9d8 Feature: Tunnel the device protocol through a reverse proxy over WebSocket
Compare 3 commits »
yuanyuanxiang created branch ws_tls in yuanyuanxiang/SimpleRemoter 2026-10-30 16:30:04 +00:00
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-30 16:18:34 +00:00
de621aa555 Compliance: Audit third-party dependencies and complete the license notices
82f59b2469 Fix: Make the x264 opt-out real, and unchain libyuv from it
1d875ddbd1 Feature: Add a "Copy Name" item to the online host context menu
Compare 3 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-29 20:39:50 +00:00
dcb5ae25c6 Fix: Paginate get_activity_history results
56a937fabb Fix: Three blocking defects found by the MCP tool survey
dc4fd792f6 Feature: Implement the Linux screen preview response
Compare 3 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-29 16:30:42 +00:00
5bff9df3fc Improve: Harden the self-implemented SOCKS5 proxy listener
45e1dd9f6c Feature: Implement the proxy mapping listener without HP-Socket
13c02fe50b Feature: Skip already-present targets in copy_files_c2c
Compare 3 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-29 08:49:13 +00:00
cd10d0cc1b Docs: Bring the MCP plan up to date after P10 and P11
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-28 20:53:05 +00:00
1c832ff7f2 Feature: Add MCP cancellation, progress notifications and dry runs
3d388f8e45 Feature: Add remote_block_input to MCP remote control
27b5431130 Feature: Add the file-write tools behind their own switch
bb55f52b29 Feature: Add instructions, capability reporting and filters to MCP
4a3cded174 Docs: Plan the next MCP phase, with its claims checked against the code
Compare 5 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-28 13:50:28 +00:00
106ac2ff0f Fix: Resolve the Desktop, Downloads and home shortcuts on Unix clients
6bfa4294cc Feature: Switch a Linux client's transport TLS at runtime
Compare 2 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-27 20:45:24 +00:00
c11df75225 Fix: Report the real runtime instead of a timezone skew in host info
4d2abf34d0 Feature: Support the Tier 1 MCP tools on Linux clients
3a158a241c Feature: Support upload_file and download_file on Linux and macOS hosts
Compare 3 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-27 19:00:08 +00:00
4146c73657 Feature: Make Linux a copy_files_c2c destination
4c0e86dcc5 Feature: Upgrade a Linux client from the server
Compare 2 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-26 17:22:28 +00:00
bfb17d0d25 Feature: Draw the remote cursor in the web desktop out of control mode
6236ed1eb4 Fix: Make the Go web console wheel scroll correctly
c271911fcb Feature: Add copy_files_c2c to transfer files between clients directly
27d40f5678 Fix: Expose tool payloads in the content text block
a7dd86ff0f Feature: Terminate TLS for the MCP endpoint inside YAMA
Compare 5 commits »
yuanyuanxiang pushed to main at yuanyuanxiang/SimpleRemoter 2026-10-25 17:23:59 +00:00
b4cb34fea9 Fix: Stop MCP tool timeouts from popping MFC dialogs
1456882f16 Docs: Record the structured failure protocol and -32010
3b1626f415 Feature: Turn client failure reports into branchable MCP errors
315a0855dc Feature: Let the client report structured failures for MCP tools
eaa10cc7d3 Fix: Make the MCP command sentinel robust and fail stalled downloads fast
Compare 5 commits »