ammario / ipisp

Query IP address network information in Go
MIT License
66 stars 13 forks source link

ASN Name Returns Bad Value #7

Closed subfission closed 6 years ago

subfission commented 6 years ago

It appears that ParseName() has an issue with ASN names using -. The method tokenizes using - as a separator, which causes part of the data to be truncated. Using a slice and then concatenating elements [1+] might be a workable solution...

ammario commented 6 years ago

Could you provide an example ASN?

subfission commented 6 years ago

Here is an easy one:

AKAMAI-AS

Number | 35993

subfission commented 6 years ago

AS35993 Country: US Registration Date: 2005-05-03 Registrar: arin Owner: AKAMAI-AS - Akamai Technologies, Inc., US