Jelajahi Sumber

nicer country code

Paul Klumpp 12 tahun lalu
induk
melakukan
4d426a2bf9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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