-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: After the sign server is up and running, proceed with registering the instance and support automatic registration #2309
Conversation
试了露珠pr来源仓库dev版编译至arm64 ubuntu,结果不行, 原qsign断开后,等待10多秒出现风控提示后再启动qsign,后续都风控了,不会重连 以下是qsign重启后日志 ubuntu@mjie:~/qsign/1.1.6$ bash bin/unidbg-fetch-qsign --basePath=txlib/8.9.70 |
qsign那边有配置自动注册吗?没开启的话,qsign崩了就只能重新注册。 |
我也试了一下,一样的报错,自动注册确定是开着的 |
啊啊啊抱歉,我理解错了qsign那边的文档里的参数的意思了,我理解成url参数了所以会导致sign函数报错 |
#2303
The previous versions didn't wait for the sign server to start before performing instance registration. This issue has been fixed now.
It also supports the automatic registration feature of the current version of the sign server, thereby avoiding the situation where the program has to be restarted to re-register instances after the sign server crashes.
add functions in cmd/gocq/login.go:
The functions listenPort, dailPort, and waitForConnection use net.Dial to check if the sign server is running every five seconds. They will remain blocked until the sign server is started.