Browse Source

nicer country code

Paul Klumpp 11 năm trước cách đây
mục cha
commit
4d426a2bf9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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