添加otp说明文字

This commit is contained in:
bjdgyc
2024-02-23 16:07:41 +08:00
parent a59e480b61
commit a650db816c
8 changed files with 9 additions and 9 deletions

View File

@@ -192,7 +192,7 @@ func LinkTunnel(w http.ResponseWriter, r *http.Request) {
hClone := w.Header().Clone()
buf := &bytes.Buffer{}
_ = hClone.Write(buf)
base.Trace("LinkTunnel Response Header:", buf.String())
base.Debug("LinkTunnel Response Header:", buf.String())
hj := w.(http.Hijacker)
conn, bufRW, err := hj.Hijack()

View File

@@ -119,7 +119,7 @@ func notFound(w http.ResponseWriter, r *http.Request) {
// fmt.Println(r.RemoteAddr)
if base.GetLogLevel() == base.LogLevelTrace {
hd, _ := httputil.DumpRequest(r, true)
base.Trace("NotFound: ", string(hd))
base.Trace("NotFound: ", r.RemoteAddr, string(hd))
}
w.WriteHeader(http.StatusNotFound)