summaryrefslogtreecommitdiff
path: root/web/controllers/reflect_ip.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/controllers/reflect_ip.go')
-rw-r--r--web/controllers/reflect_ip.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/controllers/reflect_ip.go b/web/controllers/reflect_ip.go
index 199d736..556f15b 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/util" 8 "code.crute.me/mcrute/frame"
9) 9)
10 10
11func ReflectIP(c *gin.Context) { 11func ReflectIP(c *gin.Context) {
12 ip := util.GetRequestIP(c) 12 ip := frame.GetRequestIP(c)
13 if ip == nil { 13 if ip == nil {
14 c.String(http.StatusInternalServerError, "") 14 c.String(http.StatusInternalServerError, "")
15 return 15 return