Skip to content

Commit

Permalink
fix: nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 29, 2023
1 parent fd6ef4a commit 77b54fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gocq/qsign.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func getAvaliableSignServer() (*config.SignServer, error) {
} else if errn.hasOver(uintptr(maxCount)) {
log.Fatalf("获取可用签名服务器失败次数超过 %v 次, 正在离线", maxCount)
}
if len(cs.URL) > 0 {
if cs != nil && len(cs.URL) > 0 {
log.Warnf("当前签名服务器 %v 不可用,正在查找可用服务器", cs.URL)
}
cs = asyncCheckServer(base.SignServers)
Expand Down

0 comments on commit 77b54fc

Please sign in to comment.