[tor-commits] [onionoo/master] Make sure country codes are lower-case as specified.

karsten at torproject.org karsten at torproject.org
Fri Mar 23 12:05:27 UTC 2012


commit 1f34e85c33e1757279a41c21eb309f1bd8d1c7b6
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Fri Mar 23 12:42:38 2012 +0100

    Make sure country codes are lower-case as specified.
---
 src/org/torproject/onionoo/CurrentNodes.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/onionoo/CurrentNodes.java b/src/org/torproject/onionoo/CurrentNodes.java
index 2264510..6c3798b 100644
--- a/src/org/torproject/onionoo/CurrentNodes.java
+++ b/src/org/torproject/onionoo/CurrentNodes.java
@@ -240,7 +240,7 @@ public class CurrentNodes {
               location.latitude));
           relay.setLongitude(String.format(Locale.US, "%.6f",
               location.longitude));
-          relay.setCountryCode(location.countryCode);
+          relay.setCountryCode(location.countryCode.toLowerCase());
           relay.setCountryName(location.countryName);
           relay.setRegionName(regionName.regionNameByCode(
               location.countryCode, location.region));



More information about the tor-commits mailing list