geoip: don't run ASN tests if ASN db didn't load
This commit is contained in:
parent
03e7ef722c
commit
84db310736
@ -169,6 +169,8 @@ sub test_set_distance {
|
||||
sub test_set_asn {
|
||||
my $self = shift;
|
||||
|
||||
return if !$self->{GeoIPASNum};
|
||||
|
||||
$self->qp->connection->remote_ip('');
|
||||
$self->set_asn();
|
||||
my $asn = $self->set_asn();
|
||||
|
Loading…
Reference in New Issue
Block a user