|
|
@@ -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 != "" { |
|
|
|