This commit is contained in:
刘河
2019-01-15 20:59:50 +08:00
parent cc90bcf4e9
commit c533436c78
6 changed files with 150 additions and 154 deletions

View File

@@ -34,7 +34,7 @@ func (s *BaseController) display(tpl ...string) {
}
s.Data["menu"] = s.actionName
ip := s.Ctx.Request.Host
s.Data["ip"] = utils.Gethostbyname(ip[0:strings.LastIndex(ip, ":")])
s.Data["ip"] = utils.GetHostByName(ip[0:strings.LastIndex(ip, ":")])
s.Data["p"] = server.Bridge.TunnelPort
s.Data["proxyPort"] = beego.AppConfig.String("hostPort")
s.Layout = "public/layout.html"