From 1394b4212326f730bdd8be710d2ee63b4801b7f9 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 16 Aug 2012 11:01:18 +0000 Subject: deterministic rule ordering regardless of DNS response --- awall/host.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/awall/host.lua b/awall/host.lua index aaa0854..65d789e 100644 --- a/awall/host.lua +++ b/awall/host.lua @@ -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] -- cgit v1.2.3