From fd6b94908b483882e1b53976b204ea3328ea8f1d Mon Sep 17 00:00:00 2001 From: fatedier Date: Mon, 18 Jul 2016 00:30:46 +0800 Subject: [PATCH] models/server: add statistics for proxies enabled privilege mode. --- src/frp/models/server/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frp/models/server/config.go b/src/frp/models/server/config.go index de96c112..a914e197 100644 --- a/src/frp/models/server/config.go +++ b/src/frp/models/server/config.go @@ -297,8 +297,10 @@ func CreateProxy(s *ProxyServer) error { delete(ProxyServers, s.Name) } } - s.Init() ProxyServers[s.Name] = s + metric.SetProxyInfo(s.Name, s.Type, s.BindAddr, s.UseEncryption, s.UseGzip, + s.PrivilegeMode, s.CustomDomains, s.ListenPort) + s.Init() return nil }