This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 654b1a9  fix: corrent SRV record priority (#3896)
654b1a9 is described below

commit 654b1a91a72342a0184ada5158b0144944d72049
Author: 罗泽轩 <spacewander...@gmail.com>
AuthorDate: Wed Mar 24 09:59:03 2021 +0800

    fix: corrent SRV record priority (#3896)
    
    Fix #3895
---
 apisix/core/dns/client.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apisix/core/dns/client.lua b/apisix/core/dns/client.lua
index 2b28542..2e05374 100644
--- a/apisix/core/dns/client.lua
+++ b/apisix/core/dns/client.lua
@@ -73,6 +73,7 @@ local function resolve_srv(client, answers)
             local copy = table.deepcopy(res)
             copy.weight = weight / count
             copy.port = answer.port
+            copy.priority = answer.priority
             insert_tab(resolved_answers, copy)
         end
     end

Reply via email to