diff options
Diffstat (limited to 'web/controllers/reflect_ip.go')
-rw-r--r-- | web/controllers/reflect_ip.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/controllers/reflect_ip.go b/web/controllers/reflect_ip.go index d04b98c..199d736 100644 --- a/web/controllers/reflect_ip.go +++ b/web/controllers/reflect_ip.go | |||
@@ -5,11 +5,11 @@ import ( | |||
5 | 5 | ||
6 | "github.com/gin-gonic/gin" | 6 | "github.com/gin-gonic/gin" |
7 | 7 | ||
8 | "code.crute.me/mcrute/go_ddns_manager/web" | 8 | "code.crute.me/mcrute/go_ddns_manager/util" |
9 | ) | 9 | ) |
10 | 10 | ||
11 | func ReflectIP(c *gin.Context) { | 11 | func ReflectIP(c *gin.Context) { |
12 | ip := web.GetRequestIP(c) | 12 | ip := util.GetRequestIP(c) |
13 | if ip == nil { | 13 | if ip == nil { |
14 | c.String(http.StatusInternalServerError, "") | 14 | c.String(http.StatusInternalServerError, "") |
15 | return | 15 | return |