Skip to content
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: add waitSignServer #2311

Merged
merged 10 commits into from
Aug 1, 2023
Merged

feat: add waitSignServer #2311

merged 10 commits into from
Aug 1, 2023

Conversation

KomeiDiSanXian
Copy link
Contributor

#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.

@mmmjie
Copy link

mmmjie commented Jul 21, 2023

可以了,感谢。

@fumiama fumiama changed the title feat: After the sign server is up and running, proceed with registering the instance and support automatic registration feat: add waitSignServer Aug 1, 2023
@fumiama fumiama merged commit 13215f2 into Mrs4s:dev Aug 1, 2023
0 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants