forked from ehang-io/nps
-
Notifications
You must be signed in to change notification settings - Fork 393
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
描述 bug
在客户端使用私密模式连接到 Windows 远程桌面时,服务器进程报错并退出。报错内容如下:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0x94f8e2]
goroutine 48 [running]:
ehang.io/nps/server/proxy.(*BaseServer).DealClient(0xc0002c4c80, 0xc0003ab860, 0xc00043fd40, {0xc000488870, 0x11}, {0x0, 0x0, 0x0}, {0xab2f3b, 0x3}, ...)
/home/runner/work/nps/nps/server/proxy/base.go:112 +0x122
created by ehang.io/nps/server.DealBridgeTask in goroutine 9
/home/runner/work/nps/nps/server/server.go:76 +0x479
重现步骤
- 启动服务器。
- 在客户端使用私密模式命令连接到 Windows 远程桌面,命令如下:
./npc -server=[服务器地址]:[端口] -vkey=[密钥] -type=tcp -password=[密码] -local_type=secret
预期行为
客户端使用私密模式连接到 Windows 远程桌面时,服务器进程应正常运行,不报错或退出。
服务器信息
操作系统:ubuntu
架构:amd64
版本:0.26.23
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working