aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/resolvers/service.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua
index 0ce4a5cb..b5a2d821 100644
--- a/net/resolvers/service.lua
+++ b/net/resolvers/service.lua
@@ -47,7 +47,7 @@ function methods:next(cb)
return;
end
- table.sort(answer, function (a, b) return a.srv.priority > b.srv.priority end);
+ table.sort(answer, function (a, b) return a.srv.priority < b.srv.priority end);
for _, record in ipairs(answer) do
table.insert(targets, { record.srv.target, record.srv.port, self.conn_type, self.extra });
end