update ws & settings api (#547)

This commit is contained in:
UUBulb
2024-12-04 20:00:18 +08:00
committed by GitHub
parent 6295371cac
commit 872002d938
4 changed files with 38 additions and 9 deletions

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,