Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlock1cat committed Jul 12, 2023
1 parent f63145a commit a9b275c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions utilz/asn.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ func GetAsnInfoByIps(ips string, proxy string) (cidr, asn, org, addr string) {
for _, item := range items { // Retrieve the first result.
data := handleInput(client, item)
if data != nil {
cidr = strings.Join(data.AsRange, ",")
asn = data.AsNumber
org = data.AsName
addr = data.AsCountry
cidr += strings.Join(data.AsRange, ",")
asn += data.AsNumber
org += data.AsName
addr += data.AsCountry
} else {
log.Printf("GetAsnInfoByIps> asnmap can't get data by %s", ips)
cidr = "Na"
asn = "Na"
org = "Na"
addr = "Na"
//cidr = "Na"
//asn = "Na"
//org = "Na"
//addr = "Na"
}
return
}
Expand Down

0 comments on commit a9b275c

Please sign in to comment.