Make sure the unknown country is only redirected to one server
authorTom Hughes <tom@compton.nu>
Tue, 6 Mar 2012 12:13:51 +0000 (12:13 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 6 Mar 2012 12:13:51 +0000 (12:13 +0000)
bin/mkgeo
src/tile.openstreetmap

index aa8babb243fd7fccd25b16e00565d2ed8070c079..bb29fe60f9fc9604e9e22a61602ff2323ab10c5e 100755 (executable)
--- a/bin/mkgeo
+++ b/bin/mkgeo
@@ -88,7 +88,7 @@ foreach my $country (values %countries)
     $kmlwriter->endTag("Placemark");
 }
 
-foreach my $server (keys %$servers)
+foreach my $server (grep { $servers->{$_}->{default} }keys %$servers)
 {
     $zonefile->print("Cxx.${zone}:${server}.${zone}:600\n");
 }
index 87d8fa156637071a1e955f2469ca6aae6851ee2b..a03e75fe8bca8ad0f560557527458be57047de8e 100644 (file)
@@ -2,6 +2,7 @@
 london:
   lat: 51.507222
   lon: -0.1275
+  default: true
   preferred:
     continents:
       - EU