From 0905eb936d66cf8543da4f96d129cbf854263028 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期五, 23 八月 2019 11:12:19 +0800 Subject: [PATCH] add model download so --- 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