|
@@ -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
|