host修改

pull/1219/head
刘河 2019-01-13 01:43:58 +08:00
parent 851241a0c7
commit a94cef65a1
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,6 @@ func main() {
*TcpPort = 8284
}
}
log.SetFlags(log.Lshortfile)
cnf.CompressDecode, cnf.CompressEncode = utils.GetCompressType(cnf.Compress)
server.StartNewServer(*TcpPort, &cnf)
}

View File

@ -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")

View File

@ -7,7 +7,8 @@
<input type="hidden" name="vkey" value="{{.t.VerifyKey}}">
<div class="form-group">
<label class="control-label"></label>
<input class="form-control" value="{{.h.Host}}" type="text" name="host" placeholder="域名">
<input class="form-control" value="{{.h.Host}}" type="hidden" name="host" placeholder="域名">
<input class="form-control" value="{{.h.Host}}" type="text" name="nhost" placeholder="域名">
</div>
<div class="form-group">
<label class="control-label"></label>