From e8164f07ec594bf7d9574a7f2227e90b87a9f85d Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 20 八月 2019 11:16:22 +0800 Subject: [PATCH] fix arg --- middlewares/auth/auth.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/middlewares/auth/auth.go b/middlewares/auth/auth.go index 05abaed..3bac107 100644 --- a/middlewares/auth/auth.go +++ b/middlewares/auth/auth.go @@ -38,7 +38,7 @@ //} c.Next() } else if strings.Contains(urlPath,"/httpImage") { - host := c.Request.RemoteAddr + host := c.Request.URL.Host logger.Debug("host:", host) imgUrl := config.Server.ImageUrl -- Gitblit v1.8.0