From 01518e9eee4266a42b1cfc071f7b51272836fcbe Mon Sep 17 00:00:00 2001 From: MaffC Date: Sun, 17 Mar 2013 05:42:24 +0000 Subject: [PATCH] Fixed ASN lookups --- aslookup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aslookup b/aslookup index c6525b1..e9edaec 100755 --- a/aslookup +++ b/aslookup @@ -28,12 +28,12 @@ while($witerator->isnt_exhausted) { $origin = $_ if /^origin:/; $route = $_ if /^route:/; } + $descr =~ s/.*:[ ]+//; if($target =~ /^AS.*/i) { $asnum =~ s/.*:[ ]+//; $asname =~ s/.*:[ ]+//; - print "$target advertised by $asnum - $asname\n"; + print "$target is $descr\n"; } else { - $descr =~ s/.*:[ ]+//; $origin =~ s/.*:[ ]+//; $route =~ s/.*:[ ]+//; print "$route advertised by $origin - $descr\n";