Compare commits
No commits in common. "459a2c54bc22451c7cfd42a1831357b9010cb0b4" and "063f32fcbb92530696e4e64bc55309ad73750b6e" have entirely different histories.
459a2c54bc
...
063f32fcbb
@ -12,7 +12,7 @@ func Register() *gin.Engine {
|
||||
|
||||
ipGroup := g.Group("ip")
|
||||
ipGroup.GET("myip", ip.MyIP)
|
||||
ipGroup.POST("isp", ip.ISP)
|
||||
ipGroup.GET("isp", ip.ISP)
|
||||
|
||||
return g
|
||||
}
|
||||
|
@ -18,12 +18,10 @@ 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
|
||||
}
|
||||
|
||||
|
2
web
2
web
@ -1 +1 @@
|
||||
Subproject commit 75c1187b54d135323453154209ae6aff9cb817a9
|
||||
Subproject commit 7ac3ba4fd29f10fb20e7990bbd6a2ee2c5ebfb2a
|
Loading…
Reference in New Issue
Block a user