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 d476255..201ee0d 100644 --- a/web/controllers/ddns.go +++ b/web/controllers/ddns.go | |||
@@ -7,8 +7,8 @@ import ( | |||
7 | "github.com/gin-gonic/gin" | 7 | "github.com/gin-gonic/gin" |
8 | godns "github.com/miekg/dns" | 8 | godns "github.com/miekg/dns" |
9 | 9 | ||
10 | "code.crute.me/mcrute/frame" | ||
10 | "code.crute.me/mcrute/go_ddns_manager/dns" | 11 | "code.crute.me/mcrute/go_ddns_manager/dns" |
11 | "code.crute.me/mcrute/go_ddns_manager/util" | ||
12 | "code.crute.me/mcrute/go_ddns_manager/web/middleware" | 12 | "code.crute.me/mcrute/go_ddns_manager/web/middleware" |
13 | ) | 13 | ) |
14 | 14 | ||
@@ -29,7 +29,7 @@ func UpdateDynamicDNS(c *gin.Context) { | |||
29 | return | 29 | return |
30 | } | 30 | } |
31 | 31 | ||
32 | inip := util.GetRequestIP(c) | 32 | inip := frame.GetRequestIP(c) |
33 | if inip == nil { | 33 | if inip == nil { |
34 | log.Println("ddns: Unable to parse IP") | 34 | log.Println("ddns: Unable to parse IP") |
35 | c.AbortWithStatus(http.StatusInternalServerError) | 35 | c.AbortWithStatus(http.StatusInternalServerError) |