Skip to content

Commit

Permalink
Parsing out the leading 'AS' in the asname if it exists (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcpsec committed Sep 16, 2014
1 parent 17ae07f commit 5864b39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions winnower.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def org_by_addr(address, org_data):
for iprange in org_data:
if address in iprange:
as_num, sep, as_name = org_data[iprange].partition(' ')
as_num = as_num.replace("AS", "") # Making sure the variable only has the number
break
return as_num, as_name

Expand Down

0 comments on commit 5864b39

Please sign in to comment.