feat: update ISP check
All checks were successful
CI / deploy (push) Successful in 3m3s

This commit is contained in:
thehrz 2024-08-20 19:52:40 +08:00
parent 52bf41760c
commit 459a2c54bc
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
2 changed files with 3 additions and 1 deletions

View File

@ -18,10 +18,12 @@ func ISP(c *gin.Context) {
asn, err := utils.GetASN(utils.ToIP(net.ParseIP(req.Address))) asn, err := utils.GetASN(utils.ToIP(net.ParseIP(req.Address)))
if err != nil { if err != nil {
c.AbortWithStatus(http.StatusInternalServerError)
return return
} }
name, err := utils.GetISPName(asn) name, err := utils.GetISPName(asn)
if err != nil { if err != nil {
c.AbortWithStatus(http.StatusInternalServerError)
return return
} }

2
web

@ -1 +1 @@
Subproject commit 7ac3ba4fd29f10fb20e7990bbd6a2ee2c5ebfb2a Subproject commit 75c1187b54d135323453154209ae6aff9cb817a9