|
@@ -844,11 +844,12 @@ module CentralProtocolHandler
|
|
|
|
|
|
if iphost =~ /^\d+\.\d+\.\d+\.\d+/
|
|
if iphost =~ /^\d+\.\d+\.\d+\.\d+/
|
|
|
|
|
|
|
|
+ targetname = $gs.get_cool_dns(iphost, ipport)
|
|
|
|
+
|
|
# find country code
|
|
# find country code
|
|
- c = GeoIP.new('GeoIP.dat').country(iphost)[3].to_s.downcase
|
|
|
|
- rest.prepend " #{c}" unless c.nil? || c.empty?
|
|
|
|
|
|
+ cc = GeoIP.new('GeoIP.dat').country(iphost)[3].to_s.downcase
|
|
|
|
|
|
- targetname = $gs.get_cool_dns(iphost, ipport)
|
|
|
|
|
|
+ rest.prepend " #{cc}" unless cc.nil? || cc.empty? || targetname =~ /#{cc}$/
|
|
|
|
|
|
end # if ip is x.x.x.x
|
|
end # if ip is x.x.x.x
|
|
|
|
|