diff --git a/frontend/src/Route.tsx b/frontend/src/Route.tsx index 7538ba1..86235a3 100644 --- a/frontend/src/Route.tsx +++ b/frontend/src/Route.tsx @@ -22,7 +22,7 @@ function Root() { <> }> - 123

} /> + 404

} /> } /> } /> diff --git a/utils/ip.go b/utils/ip.go index 768fbb3..c840e8c 100644 --- a/utils/ip.go +++ b/utils/ip.go @@ -9,7 +9,7 @@ import ( func GetIP(r *http.Request) (string, error) { ip, _, err := net.SplitHostPort(r.RemoteAddr) if err != nil { - return "", err + ip = r.RemoteAddr } netIP := net.ParseIP(ip) if netIP != nil {