瀏覽代碼

[Minor] Try all hostname regexps to find the most significant one

tags/1.6.0
Vsevolod Stakhov 7 年之前
父節點
當前提交
02fcaa6b27
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      src/plugins/lua/hfilter.lua

+ 3
- 2
src/plugins/lua/hfilter.lua 查看文件

@@ -389,8 +389,9 @@ local function hfilter(task)
else
for regexp,weight in pairs(checks_hellohost) do
if check_regexp(hostname, regexp) then
weight_hostname = weight
break
if weight > weight_hostname then
weight_hostname = weight
end
end
end
end

Loading…
取消
儲存