mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Don't set asn as value, but key, thanks manuelkasper
Signed-off-by: jack <jack@k-net.pro>
This commit is contained in:
parent
79abab60d3
commit
84931f2eca
@ -76,7 +76,7 @@ if ($sflow_server_port == $server_port) {
|
||||
my %myas;
|
||||
if($sflow_server_port > 0){
|
||||
die('No ASN found, please specify -a') if !defined($myas_opt);
|
||||
%myas = split(',', $myas_opt);
|
||||
%myas = map {$_ => 1 } split(',', $myas_opt);
|
||||
for my $i (%myas){
|
||||
next if !defined($i);
|
||||
die("Your AS number is non numeric ($i)\n") if ($i !~ /^[0-9]+$/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user