diff options
-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] |