diff options
author | Mike Crute <mike@crute.us> | 2020-01-04 06:39:30 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-08-11 02:56:10 +0000 |
commit | a810417e580890028cf725f6a71d43dbc5c02235 (patch) | |
tree | 863ea8743a94c816664ebbecc9e9a68387e2ed7a /web/controllers/reflect_ip.go | |
parent | 8ed9671c0b4f78711858448cf3b4ee9af0eba51e (diff) | |
download | go_ddns_manager-a810417e580890028cf725f6a71d43dbc5c02235.tar.bz2 go_ddns_manager-a810417e580890028cf725f6a71d43dbc5c02235.tar.xz go_ddns_manager-a810417e580890028cf725f6a71d43dbc5c02235.zip |
Refator using le utils
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 |