diff options
Diffstat (limited to 'web/controllers/ddns.go')
-rw-r--r-- | web/controllers/ddns.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/controllers/ddns.go b/web/controllers/ddns.go index 7300989..692b59f 100644 --- a/web/controllers/ddns.go +++ b/web/controllers/ddns.go | |||
@@ -7,7 +7,7 @@ import ( | |||
7 | "github.com/gin-gonic/gin" | 7 | "github.com/gin-gonic/gin" |
8 | 8 | ||
9 | "code.crute.me/mcrute/go_ddns_manager/dns" | 9 | "code.crute.me/mcrute/go_ddns_manager/dns" |
10 | "code.crute.me/mcrute/go_ddns_manager/web" | 10 | "code.crute.me/mcrute/go_ddns_manager/util" |
11 | "code.crute.me/mcrute/go_ddns_manager/web/middleware" | 11 | "code.crute.me/mcrute/go_ddns_manager/web/middleware" |
12 | ) | 12 | ) |
13 | 13 | ||
@@ -28,7 +28,7 @@ func UpdateDynamicDNS(c *gin.Context) { | |||
28 | return | 28 | return |
29 | } | 29 | } |
30 | 30 | ||
31 | inip := web.GetRequestIP(c) | 31 | inip := util.GetRequestIP(c) |
32 | if inip == nil { | 32 | if inip == nil { |
33 | log.Println("ddns: Unable to parse IP") | 33 | log.Println("ddns: Unable to parse IP") |
34 | c.AbortWithStatus(http.StatusInternalServerError) | 34 | c.AbortWithStatus(http.StatusInternalServerError) |