Преглед изворни кода

[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…
Откажи
Сачувај