Browse Source

All labels are lowercase, so make the country code as well

Ask Bjørn Hansen 13 years ago
parent
commit
5f004eaa0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      serve.go

+ 1 - 1
serve.go

@@ -35,7 +35,7 @@ func serve(w dns.ResponseWriter, req *dns.Msg, z *Zone) {
 
 	var country string
 	if geoIP != nil {
-		country = geoIP.GetCountry(w.RemoteAddr().String())
+		country = strings.ToLower(geoIP.GetCountry(w.RemoteAddr().String()))
 		logPrintln("Country:", country)
 	}