Hide DDNS domain info for guests (#371)

This commit is contained in:
UUBulb 2024-06-22 22:52:29 +08:00 committed by GitHub
parent bc7791efd2
commit feb4659cab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,9 @@ func ReSortServer() {
for _, s := range ServerList {
SortedServerList = append(SortedServerList, s)
if !s.HideForGuest {
SortedServerListForGuest = append(SortedServerListForGuest, s)
filteredStat := *s
filteredStat.DDNSDomain = "redacted"
SortedServerListForGuest = append(SortedServerListForGuest, &filteredStat)
}
}