geoip: don't run ASN tests if ASN db didn't load

This commit is contained in:
Matt Simerson 2014-11-11 02:02:21 -05:00
parent 03e7ef722c
commit 84db310736

View File

@ -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();