diff --git a/cmd/gocq/qsign.go b/cmd/gocq/qsign.go index 1bf019196..f436bd4d2 100644 --- a/cmd/gocq/qsign.go +++ b/cmd/gocq/qsign.go @@ -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)