From 459a2c54bc22451c7cfd42a1831357b9010cb0b4 Mon Sep 17 00:00:00 2001 From: thehrz Date: Tue, 20 Aug 2024 19:52:40 +0800 Subject: [PATCH] feat: update ISP check --- internal/router/routes/ip/isp.go | 2 ++ web | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/router/routes/ip/isp.go b/internal/router/routes/ip/isp.go index 8f47c22..0a152e9 100644 --- a/internal/router/routes/ip/isp.go +++ b/internal/router/routes/ip/isp.go @@ -18,10 +18,12 @@ func ISP(c *gin.Context) { asn, err := utils.GetASN(utils.ToIP(net.ParseIP(req.Address))) if err != nil { + c.AbortWithStatus(http.StatusInternalServerError) return } name, err := utils.GetISPName(asn) if err != nil { + c.AbortWithStatus(http.StatusInternalServerError) return } diff --git a/web b/web index 7ac3ba4..75c1187 160000 --- a/web +++ b/web @@ -1 +1 @@ -Subproject commit 7ac3ba4fd29f10fb20e7990bbd6a2ee2c5ebfb2a +Subproject commit 75c1187b54d135323453154209ae6aff9cb817a9