Skip to content

Commit

Permalink
Hide DDNS domain info for guests (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb authored Jun 22, 2024
1 parent bc7791e commit feb4659
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/singleton/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit feb4659

Please sign in to comment.