Merge pull request #3 from uubulb/dev

fix ReSortServer
This commit is contained in:
UUBulb 2024-11-03 21:14:10 +08:00 committed by GitHub
commit 94e7e47375
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,6 @@ func ReSortServer() {
defer SortedServerLock.Unlock() defer SortedServerLock.Unlock()
SortedServerList = make([]*model.Server, 0, len(ServerList)) SortedServerList = make([]*model.Server, 0, len(ServerList))
var SortedServerListForGuest []*model.Server
for _, s := range ServerList { for _, s := range ServerList {
SortedServerList = append(SortedServerList, s) SortedServerList = append(SortedServerList, s)
if !s.HideForGuest { if !s.HideForGuest {