ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
29.73k stars 5.37k forks source link

panic: runtime error: slice bounds out of range [1413:149] #1232

Closed kof8855 closed 11 months ago

kof8855 commented 11 months ago

udp流量使用一段时间后,nps服务器报错并停止,有什么办法解决???

panic: runtime error: slice bounds out of range [1413:149]

goroutine 9139 [running]: ehang.io/nps-mux.(sendWindow).WriteTo(0xc0004b8180, 0xc0002d3740, 0x13, 0x1, 0xc00026ed48, 0x4042d0, 0xc00026ef28) /home/runner/go/pkg/mod/ehang.io/nps-mux@v0.0.0-20210407130203-4afa0c10c992/conn.go:554 +0x2f2 ehang.io/nps-mux.(sendWindow).WriteFull(0xc0004b8180, 0xc000675500, 0x95, 0x688, 0xc000000006, 0x40a37f, 0xc000010000, 0xaa0b00) /home/runner/go/pkg/mod/ehang.io/nps-mux@v0.0.0-20210407130203-4afa0c10c992/conn.go:608 +0x8e ehang.io/nps-mux.(conn).Write(0xc00087eaf0, 0xc000675500, 0x95, 0x688, 0xc00026ee38, 0x40b905, 0xaa0b00) /home/runner/go/pkg/mod/ehang.io/nps-mux@v0.0.0-20210407130203-4afa0c10c992/conn.go:63 +0x8e ehang.io/nps/lib/rate.(rateConn).Write(0xc0001f3c00, 0xc000675500, 0x95, 0x688, 0xc0001f3c00, 0xc0002d2701, 0x13) /home/runner/work/nps/nps/lib/rate/conn.go:28 +0x55 ehang.io/nps/server/proxy.(UdpModeServer).process(0xc00021c7e0, 0xc0003fc420, 0xc000675500, 0x95, 0x688) /home/runner/work/nps/nps/server/proxy/udp.go:59 +0x8e3 created by ehang.io/nps/server/proxy.(UdpModeServer).Start /home/runner/work/nps/nps/server/proxy/udp.go:50 +0x2cc