X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/3021bd5f500d092062fb22f443f40e44941fbd23..a525a4cf3e9fd98d7ecdc787ad455e1fb67cb3ca:/bin/mkgeo?ds=inline diff --git a/bin/mkgeo b/bin/mkgeo index bf5ca4d..7b70c22 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -273,30 +273,30 @@ sub match_origin { $match = "preferred"; } - elsif ($cluster->{preferred} && - $cluster->{preferred}->{continents} && - grep { $_ eq $origin->{continent} } @{$cluster->{preferred}->{continents}}) - { - $match = "preferred"; - } elsif ($cluster->{allowed} && $cluster->{allowed}->{countries} && grep { $_ eq $origin->{country} } @{$cluster->{allowed}->{countries}}) { $match = "allowed"; } - elsif ($cluster->{allowed} && - $cluster->{allowed}->{continents} && - grep { $_ eq $origin->{continent} } @{$cluster->{allowed}->{continents}}) - { - $match = "allowed"; - } elsif ($cluster->{denied} && $cluster->{denied}->{countries} && grep { $_ eq $origin->{country} } @{$cluster->{denied}->{countries}}) { $match = "denied"; } + elsif ($cluster->{preferred} && + $cluster->{preferred}->{continents} && + grep { $_ eq $origin->{continent} } @{$cluster->{preferred}->{continents}}) + { + $match = "preferred"; + } + elsif ($cluster->{allowed} && + $cluster->{allowed}->{continents} && + grep { $_ eq $origin->{continent} } @{$cluster->{allowed}->{continents}}) + { + $match = "allowed"; + } elsif ($cluster->{denied} && $cluster->{denied}->{continents} && grep { $_ eq $origin->{continent} } @{$cluster->{denied}->{continents}})