Browse Source

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

tags/1.6.0
Vsevolod Stakhov 7 years ago
parent
commit
02fcaa6b27
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/plugins/lua/hfilter.lua

+ 3
- 2
src/plugins/lua/hfilter.lua View File

@@ -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…
Cancel
Save