Explorar o código

nicer country code

Paul Klumpp %!s(int64=12) %!d(string=hai) anos
pai
achega
4d426a2bf9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      em_server.rb

+ 1 - 1
em_server.rb

@@ -261,7 +261,7 @@ module InterconnectionPointProtocolHandler
             if iphost =~ /^\d+\.\d+\.\d+\.\d+/
               # find country code
               c = GeoIP.new('GeoIP.dat').country(iphost)[3].to_s.downcase
-              rest.prepend " (#{c})" unless c.nil?
+              rest.prepend " #{c}" unless c.nil?
 
               # resolve it to a dns name