Comments (10)
复现出来了,的确是由新版客户端引起的,可以暂时使用0.26.10 客户端,后续会修复新版本客户端的bug
from nps.
无法复现呐小哥,你用的是http还是tcp协议,这二种协议都试过吗
from nps.
无法复现呐小哥,你用的是http还是tcp协议,这二种协议都试过吗
http协议
from nps.
无法复现呐小哥,你用的是http还是tcp协议,这二种协议都试过吗
如果是服务器本地的话,选择代理到服务器本地是没问题的。不是服务器本地就有问题
from nps.
无法复现呐小哥,你用的是http还是tcp协议,这二种协议都试过吗
如果是服务器本地的话,选择代理到服务器本地是没问题的。不是服务器本地就有问题
你用tcp协议试试看
from nps.
无法复现呐小哥,你用的是http还是tcp协议,这二种协议都试过吗
如果是服务器本地的话,选择代理到服务器本地是没问题的。不是服务器本地就有问题
你用tcp协议试试看
要用tcp的话原版一直就可以。
from nps.
看了错误信息,貌似不是由websocket 引起的,无法复现,等等看有没有人再有类似的问题吧~~
from nps.
2022/10/31 20:49:09.523 [D] [client.go:216] new tcp connection with the goal of 127.0.0.1:3389, remote address:111.198.230.51:19608
2022/10/31 20:49:09 worker with func exits from a panic: runtime error: invalid memory address or nil pointer dereference
2022/10/31 20:49:09 worker with func exits from panic: goroutine 11355 [running]:
github.com/panjf2000/ants/v2.(*goWorkerWithFunc).run.func1.1(0xc000203320)
/home/runner/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker_func.go:58 +0x16f
panic(0x1550340, 0x1a4ff00)
/opt/hostedtoolcache/go/1.15.15/x64/src/runtime/panic.go:969 +0x1c7
ehang.io/nps/lib/file.(*Flow).Add(0x0, 0x13, 0x13)
/home/runner/work/nps/nps/lib/file/obj.go:21 +0x3a
ehang.io/nps/lib/goroutine.CopyBuffer(0x16c29a0, 0xc0008ca0a0, 0x1676b393138, 0xc000602700, 0x0, 0x0, 0xc000680410, 0xe, 0x0, 0x0)
/home/runner/work/nps/nps/lib/goroutine/pool.go:81 +0x2dc
ehang.io/nps/lib/goroutine.copyConnGroup(0x15c0d40, 0xc0002726e0)
/home/runner/work/nps/nps/lib/goroutine/pool.go:114 +0x165
github.com/panjf2000/ants/v2.(*goWorkerWithFunc).run.func1(0xc000203320)
/home/runner/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker_func.go:68 +0xb7
created by github.com/panjf2000/ants/v2.(*goWorkerWithFunc).run
/home/runner/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker_func.go:48 +0x53
2022/10/31 20:49:09 worker with func exits from a panic: runtime error: invalid memory address or nil pointer dereference
2022/10/31 20:49:09 worker with func exits from panic: goroutine 11354 [running]:
github.com/panjf2000/ants/v2.(*goWorkerWithFunc).run.func1.1(0xc000188e40)
/home/runner/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker_func.go:58 +0x16f
panic(0x1550340, 0x1a4ff00)
/opt/hostedtoolcache/go/1.15.15/x64/src/runtime/panic.go:969 +0x1c7
ehang.io/nps/lib/file.(*Flow).Add(0x0, 0x13, 0x13)
/home/runner/work/nps/nps/lib/file/obj.go:21 +0x3a
ehang.io/nps/lib/goroutine.CopyBuffer(0x1676b204008, 0xc000602700, 0x1676b115840, 0xc0008ca0a0, 0x0, 0x0, 0xc000680410, 0xe, 0x0, 0x0)
/home/runner/work/nps/nps/lib/goroutine/pool.go:81 +0x2dc
ehang.io/nps/lib/goroutine.copyConnGroup(0x15c0d40, 0xc000272690)
/home/runner/work/nps/nps/lib/goroutine/pool.go:114 +0x165
github.com/panjf2000/ants/v2.(*goWorkerWithFunc).run.func1(0xc000188e40)
/home/runner/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker_func.go:68 +0xb7
created by github.com/panjf2000/ants/v2.(*goWorkerWithFunc).run
/home/runner/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker_func.go:48 +0x53
配置文件:
[common]
server_addr=
conn_type=tcp
vkey=
auto_reconnection=true
max_conn=1000
flow_limit=1000
rate_limit=1000
basic_username=11
basic_password=3
web_username=user
web_password=1234
crypt=true
compress=true
#pprof_addr=0.0.0.0:9999
disconnect_timeout=60
[health_check_test1]
health_check_timeout=1
health_check_max_failed=3
health_check_interval=1
health_http_url=/
health_check_type=http
health_check_target=127.0.0.1:8083,127.0.0.1:8082
[health_check_test2]
health_check_timeout=1
health_check_max_failed=3
health_check_interval=1
health_check_type=tcp
health_check_target=127.0.0.1:8083,127.0.0.1:8082
[web]
host=
target_addr=127.0.0.1:8083,127.0.0.1:8082
from nps.
使用原版的客户端可解决我的问题
from nps.
已修复 v0.26.12.2
from nps.
Related Issues (20)
- 在隧道中关闭转发的TCP端口,端口还是可以正常使用的
- Docker中,NPC与服务端使用HTTP连接无效,TLS恒为false,无法修改 HOT 4
- 解压完压缩包,执行./nps install后,nps start启动无回显,ps -ef | grep nps无相关进程,lsof -i:8080也没有 HOT 1
- 使用的是kcp协议,打开tls 是连不上的。 HOT 2
- openwrt npc 永远停在了0.26.10 有没有哪个大佬顺便更新一下 arm 和 x86的 客户端和依赖 HOT 2
- 双重验证 2FAS HOT 1
- nps无法启动,create_captcha函数不存在 HOT 3
- 客户端IP地址显示不全
- NPS支持HA部署吗?在需要HA的环境下该怎么处理呢? HOT 1
- docker 启动很占内存,最后报cannot allocate memory
- 通过后台配置tcp模式的负载均衡只有一个目标能够访问
- docker启动报错 HOT 1
- 希望能增加客户端有效期设置,时间到期后自动断开客户端连接 HOT 1
- 19版本web页面版本号未同步 HOT 3
- 0.26.19 的HTTPS 证书不支持路径了 HOT 2
- NPS服务被入侵
- TCP 隧道列表可以增加排序功能吗? HOT 1
- Docker部署nps后,报错panic: open /conf/clients.json: no such file or directory HOT 1
- ipv6
- 客户端列表是否可以增加“列”修改后保存功能
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nps.