mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 11:56:53 +00:00
https 、客户端与服务端连接优化
This commit is contained in:
@@ -40,7 +40,8 @@ func (s *BaseController) display(tpl ...string) {
|
||||
}
|
||||
ip := s.Ctx.Request.Host
|
||||
if strings.LastIndex(ip, ":") > 0 {
|
||||
s.Data["ip"] = utils.GetHostByName(ip[0:])
|
||||
arr := strings.Split(utils.GetHostByName(ip), ":")
|
||||
s.Data["ip"] = arr[0]
|
||||
}
|
||||
s.Data["p"] = server.Bridge.TunnelPort
|
||||
s.Data["proxyPort"] = beego.AppConfig.String("hostPort")
|
||||
|
Reference in New Issue
Block a user