소스 검색

dot missing

Paul Klumpp 12 년 전
부모
커밋
61cb66aac0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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