diff --git a/t/plugin_tests/ident/geoip b/t/plugin_tests/ident/geoip index 43392fd..56e0b38 100644 --- a/t/plugin_tests/ident/geoip +++ b/t/plugin_tests/ident/geoip @@ -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();