mirror of https://github.com/ehang-io/nps
host修改
parent
851241a0c7
commit
a94cef65a1
|
@ -50,7 +50,6 @@ func main() {
|
||||||
*TcpPort = 8284
|
*TcpPort = 8284
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.SetFlags(log.Lshortfile)
|
|
||||||
cnf.CompressDecode, cnf.CompressEncode = utils.GetCompressType(cnf.Compress)
|
cnf.CompressDecode, cnf.CompressEncode = utils.GetCompressType(cnf.Compress)
|
||||||
server.StartNewServer(*TcpPort, &cnf)
|
server.StartNewServer(*TcpPort, &cnf)
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,7 +188,7 @@ func (s *IndexController) EditHost() {
|
||||||
s.error()
|
s.error()
|
||||||
} else {
|
} else {
|
||||||
h.Vkey = s.GetString("vkey")
|
h.Vkey = s.GetString("vkey")
|
||||||
h.Host = s.GetString("host")
|
h.Host = s.GetString("nhost")
|
||||||
h.Target = s.GetString("target")
|
h.Target = s.GetString("target")
|
||||||
h.HeaderChange = s.GetString("header")
|
h.HeaderChange = s.GetString("header")
|
||||||
h.HostChange = s.GetString("hostchange")
|
h.HostChange = s.GetString("hostchange")
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
<input type="hidden" name="vkey" value="{{.t.VerifyKey}}">
|
<input type="hidden" name="vkey" value="{{.t.VerifyKey}}">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label">域名</label>
|
<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>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label">内网目标</label>
|
<label class="control-label">内网目标</label>
|
||||||
|
|
Loading…
Reference in New Issue