From a94cef65a1e295ea0acc091e83d2ca6056bb99a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B2=B3?= Date: Sun, 13 Jan 2019 01:43:58 +0800 Subject: [PATCH] =?UTF-8?q?host=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/proxy_server/proxy_server.go | 1 - web/controllers/index.go | 2 +- web/views/index/hedit.html | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/proxy_server/proxy_server.go b/cmd/proxy_server/proxy_server.go index 057059a..686742d 100644 --- a/cmd/proxy_server/proxy_server.go +++ b/cmd/proxy_server/proxy_server.go @@ -50,7 +50,6 @@ func main() { *TcpPort = 8284 } } - log.SetFlags(log.Lshortfile) cnf.CompressDecode, cnf.CompressEncode = utils.GetCompressType(cnf.Compress) server.StartNewServer(*TcpPort, &cnf) } diff --git a/web/controllers/index.go b/web/controllers/index.go index 3972305..cb7896e 100755 --- a/web/controllers/index.go +++ b/web/controllers/index.go @@ -188,7 +188,7 @@ func (s *IndexController) EditHost() { s.error() } else { h.Vkey = s.GetString("vkey") - h.Host = s.GetString("host") + h.Host = s.GetString("nhost") h.Target = s.GetString("target") h.HeaderChange = s.GetString("header") h.HostChange = s.GetString("hostchange") diff --git a/web/views/index/hedit.html b/web/views/index/hedit.html index 2f3d741..eb5b71d 100644 --- a/web/views/index/hedit.html +++ b/web/views/index/hedit.html @@ -7,7 +7,8 @@
- + +