mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
dashbaord_api: more info
This commit is contained in:
parent
76b04f52d1
commit
96b94d9164
@ -37,11 +37,15 @@ type ServerInfoResp struct {
|
|||||||
GeneralResponse
|
GeneralResponse
|
||||||
|
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
|
BindPort int `json:"bind_port"`
|
||||||
|
BindUdpPort int `json:"bind_udp_port"`
|
||||||
VhostHttpPort int `json:"vhost_http_port"`
|
VhostHttpPort int `json:"vhost_http_port"`
|
||||||
VhostHttpsPort int `json:"vhost_https_port"`
|
VhostHttpsPort int `json:"vhost_https_port"`
|
||||||
|
KcpBindPort int `json:"kcp_bind_port"`
|
||||||
AuthTimeout int64 `json:"auth_timeout"`
|
AuthTimeout int64 `json:"auth_timeout"`
|
||||||
SubdomainHost string `json:"subdomain_host"`
|
SubdomainHost string `json:"subdomain_host"`
|
||||||
MaxPoolCount int64 `json:"max_pool_count"`
|
MaxPoolCount int64 `json:"max_pool_count"`
|
||||||
|
MaxPortsPerClient int64 `json:"max_ports_per_client"`
|
||||||
HeartBeatTimeout int64 `json:"heart_beat_timeout"`
|
HeartBeatTimeout int64 `json:"heart_beat_timeout"`
|
||||||
|
|
||||||
TotalTrafficIn int64 `json:"total_traffic_in"`
|
TotalTrafficIn int64 `json:"total_traffic_in"`
|
||||||
@ -65,11 +69,15 @@ func apiServerInfo(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
|
|||||||
serverStats := StatsGetServer()
|
serverStats := StatsGetServer()
|
||||||
res = ServerInfoResp{
|
res = ServerInfoResp{
|
||||||
Version: version.Full(),
|
Version: version.Full(),
|
||||||
|
BindPort: cfg.BindPort,
|
||||||
|
BindUdpPort: cfg.BindUdpPort,
|
||||||
VhostHttpPort: cfg.VhostHttpPort,
|
VhostHttpPort: cfg.VhostHttpPort,
|
||||||
VhostHttpsPort: cfg.VhostHttpsPort,
|
VhostHttpsPort: cfg.VhostHttpsPort,
|
||||||
|
KcpBindPort: cfg.KcpBindPort,
|
||||||
AuthTimeout: cfg.AuthTimeout,
|
AuthTimeout: cfg.AuthTimeout,
|
||||||
SubdomainHost: cfg.SubDomainHost,
|
SubdomainHost: cfg.SubDomainHost,
|
||||||
MaxPoolCount: cfg.MaxPoolCount,
|
MaxPoolCount: cfg.MaxPoolCount,
|
||||||
|
MaxPortsPerClient: cfg.MaxPortsPerClient,
|
||||||
HeartBeatTimeout: cfg.HeartBeatTimeout,
|
HeartBeatTimeout: cfg.HeartBeatTimeout,
|
||||||
|
|
||||||
TotalTrafficIn: serverStats.TotalTrafficIn,
|
TotalTrafficIn: serverStats.TotalTrafficIn,
|
||||||
|
Loading…
Reference in New Issue
Block a user