浏览代码

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