Commit 1394b421 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

deterministic rule ordering regardless of DNS response

parent ea47a4aa
......@@ -44,6 +44,7 @@ function resolve(host, context)
if not dnscache[host][1] then
context:error('Invalid host name: '..host)
end
table.sort(dnscache[host], function(a, b) return a[2] < b[2] end)
end
return dnscache[host]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment