From 98d58d006fb9136dbbe8f0a42fc59a646126966d Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期六, 17 八月 2019 11:03:16 +0800
Subject: [PATCH] ---

---
 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