icole 4 роки тому
батько
коміт
b72953109c
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      utils/auth/light_auth.go

+ 1 - 0
utils/auth/light_auth.go

@@ -156,6 +156,7 @@ const (
 
 // RemoteIp 返回远程客户端的 IP,如 192.168.1.1
 func RemoteIp(req *http.Request) string {
+	fmt.Printf("+++++++++++++++%v", req.Header)
 	remoteAddr := req.RemoteAddr
 	if ip := req.Header.Get(XRealIP); ip != "" {
 		remoteAddr = ip