mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
调整
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user