Ver Fonte

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

Ask Bjørn Hansen há 13 anos atrás
pai
commit
5f004eaa0d
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 	var country string
 	if geoIP != nil {
 	if geoIP != nil {
-		country = geoIP.GetCountry(w.RemoteAddr().String())
+		country = strings.ToLower(geoIP.GetCountry(w.RemoteAddr().String()))
 		logPrintln("Country:", country)
 		logPrintln("Country:", country)
 	}
 	}