From feb4659cab037d9d0047779c025488dd46dd2a71 Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Sat, 22 Jun 2024 22:52:29 +0800 Subject: [PATCH] Hide DDNS domain info for guests (#371) --- service/singleton/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/singleton/server.go b/service/singleton/server.go index 554f5ff751..2bc679c4d7 100644 --- a/service/singleton/server.go +++ b/service/singleton/server.go @@ -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) } }