Thanks to visit codestin.com
Credit goes to github.com

Skip to content

客户端通过私密代理连接时服务端会报错退出 #250

@JAM2199562

Description

@JAM2199562

描述 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

重现步骤

  1. 启动服务器。
  2. 在客户端使用私密模式命令连接到 Windows 远程桌面,命令如下:

./npc -server=[服务器地址]:[端口] -vkey=[密钥] -type=tcp -password=[密码] -local_type=secret
预期行为
客户端使用私密模式连接到 Windows 远程桌面时,服务器进程应正常运行,不报错或退出。
服务器信息
操作系统:ubuntu
架构:amd64
版本:0.26.23

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions