Paul Klumpp před 12 roky
rodič
revize
61cb66aac0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      em_server.rb

+ 1 - 1
em_server.rb

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