refactor(grdp): 精简RDP库,删除认证检测不需要的代码

- 删除 VNC 协议支持 (protocol/rfb, client/rfb.go)
- 删除完整客户端框架 (client/)
- 删除 RemoteApp 等插件 (plugin/)
- 删除 RLE 图形解压 (core/rle.go)
- 删除绘图指令处理 (pdu/orders.go, pdu/gdi.go)
- 精简 screen.go,移除截图和完整会话功能
- 移除未使用的 RGB 转换函数

grdp 代码从 13,044 行精简至 7,581 行,削减 42%
This commit is contained in:
ZacharyZcR
2026-01-21 20:54:28 +08:00
parent 849c28ede2
commit 26cf7dbb37
16 changed files with 5 additions and 5468 deletions
+2 -1
View File
@@ -909,7 +909,8 @@ func readFastPathUpdatePDU(r io.Reader, code uint8) (*FastPathUpdatePDU, error)
//glog.Debugf("FastPathPDU type %s(0x%x)", FastPathUpdateType(code), code)
switch code {
case FASTPATH_UPDATETYPE_ORDERS:
d = &FastPathOrdersPDU{}
// 绘图指令,认证检测不需要处理
return nil, errors.New(fmt.Sprintf("Unsupport FastPathPDU type 0x%x", code))
case FASTPATH_UPDATETYPE_BITMAP:
d = &FastPathBitmapUpdateDataPDU{}
case FASTPATH_UPDATETYPE_PALETTE: