Skip to content

Commit 2825e82

Browse files
committed
fix
1 parent 904bc0f commit 2825e82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

service/bot/remote.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ func ConnectUniversal(cli *client.QQClient) {
2626
"X-Self-ID": []string{strconv.FormatInt(cli.Uin, 10)},
2727
"User-Agent": []string{"CQHttp/4.15.0"},
2828
}
29-
for _, serverGroup := range config.Conf.ServerGroups {
30-
if serverGroup.Disabled {
29+
for _, group := range config.Conf.ServerGroups {
30+
if group.Disabled {
3131
continue
3232
}
33+
serverGroup := *group
3334
util.SafeGo(func() {
3435
for {
3536
serverUrl := serverGroup.Urls[rand.Intn(len(serverGroup.Urls))]

0 commit comments

Comments
 (0)