update ws & settings api (#547)

This commit is contained in:
UUBulb authored and GitHub committed 2024-12-04 20:00:18 +08:00
1 parent e70f52ec93
commit f5b7c2be13
4 files changed
+38 -9

No files matched your search

+1 -1
View File
@@ -155,7 +155,7 @@ func getServerStat(c *gin.Context, withPublicNote bool) ([]byte, error) {
Name: server.Name,
PublicNote: utils.IfOr(withPublicNote, server.PublicNote, ""),
DisplayIndex: server.DisplayIndex,
Host: server.Host,
Host: utils.IfOr(authorized, server.Host, server.Host.Filter()),
State: server.State,
CountryCode: countryCode,
LastActive: server.LastActive,