diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-08-16 11:01:18 +0000 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-08-16 11:01:18 +0000 |
commit | 1394b4212326f730bdd8be710d2ee63b4801b7f9 (patch) | |
tree | e4d56393ba1841d20a79ebad05969cbf9fb22fdc /awall | |
parent | ea47a4aa30bf0c3ab88b93f8e8c09198a0f8dbb1 (diff) | |
download | awall-1394b4212326f730bdd8be710d2ee63b4801b7f9.tar.bz2 awall-1394b4212326f730bdd8be710d2ee63b4801b7f9.tar.xz |
deterministic rule ordering regardless of DNS response
Diffstat (limited to 'awall')
-rw-r--r-- | awall/host.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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] |