feat: add compatible Trojan manager image

This commit is contained in:
chermack
2026-07-26 05:01:15 +08:00
parent 059be96536
commit cb17d56cae
26 changed files with 320 additions and 41 deletions
+4 -4
View File
@@ -36,8 +36,8 @@ func UserList(requestUser string) *ResponseBody {
}
domain, port := trojan.GetDomainAndPort()
responseBody.Data = map[string]interface{}{
"domain": domain,
"port": port,
"domain": domain, "port": port, "publicPort": port,
"listenPort": core.GetConfig().LocalPort,
"userList": userList,
}
return &responseBody
@@ -55,8 +55,8 @@ func PageUserList(curPage int, pageSize int) *ResponseBody {
}
domain, port := trojan.GetDomainAndPort()
responseBody.Data = map[string]interface{}{
"domain": domain,
"port": port,
"domain": domain, "port": port, "publicPort": port,
"listenPort": core.GetConfig().LocalPort,
"pageData": pageData,
}
return &responseBody