Paul Klumpp 12 rokov pred
rodič
commit
579dcee07a
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      em_server.rb

+ 2 - 2
em_server.rb

@@ -261,14 +261,14 @@ module InterconnectionPointProtocolHandler
             if iphost =~ /^\d+\.\d+\.\d+\.\d+/
               # find country code
               c = GeoIP.new('GeoIP.dat').country(iphost)[3].to_s.downcase
-              rest << "(#{c})" unless c.nil?
+              rest.prepend " (#{c}) " unless c.nil?
 
               # resolve it to a dns name
               f = Fiber.new do
                 Fiber.yield Resolv.getname(iphost)
               end
               domainname = f.resume
-              #host_name = ""
+              #domainname = ""
 
               if domainname.nil? || domainname.empty?
                 domainname = iphost