Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1
zouap 3 years ago
parent
commit
32d199a6c8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      models/user_login_log.go

+ 2
- 2
models/user_login_log.go View File

@@ -34,8 +34,8 @@ func getIP(r *http.Request) string {
headerjson, _ := json.Marshal(r.Header)
log.Info("header json=" + string(headerjson))

reqjson, _ := json.Marshal(r)
log.Info("request json=" + string(reqjson))
trailerjson, _ := json.Marshal(r.Trailer)
log.Info("trailerjson=" + string(trailerjson))

forwarded := r.Header.Get("X-FORWARDED-FOR")
if forwarded != "" {


Loading…
Cancel
Save