Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fripine committed Nov 26, 2024
1 parent 1ed52b4 commit f631d55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/gocq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ func PasswordHashDecrypt(encryptedPasswordHash string, key []byte) ([]byte, erro

func newClient(app *auth.AppInfo) *client.QQClient {
signUrls := make([]string, 0, len(base.SignServers))
defaultSignUrl := "https://lwxmagic.sealdice.com/api/sign"
defaultSignURL := "https://lwxmagic.sealdice.com/api/sign"
for _, s := range base.SignServers {
if strings.Contains(s.URL, defaultSignUrl) {
s.URL = strings.ReplaceAll(s.URL, defaultSignUrl, "$(SIGN_SERVER_DEFAULT)")
if strings.Contains(s.URL, defaultSignURL) {
s.URL = strings.ReplaceAll(s.URL, defaultSignURL, "$(SIGN_SERVER_DEFAULT)")
}
u, err := url.Parse(s.URL)
if err != nil || u.Hostname() == "" {
Expand Down

0 comments on commit f631d55

Please sign in to comment.