From 6849a017d0a7070d765f011c78104349dcffa2c4 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 17 八月 2019 14:18:14 +0800 Subject: [PATCH] add person to sqlite --- 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