Переглянути джерело

[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

Завантаження…
Відмінити
Зберегти