ammario / ipisp

Query IP address network information in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASN Name Returns Bad Value

subfission opened this issue · comments

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...

Could you provide an example ASN?

Here is an easy one:

AKAMAI-AS

Number | 35993

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