Skip to content

Commit

Permalink
fix(dns): keep the force sync option on recursive toip calls
Browse files Browse the repository at this point in the history
  • Loading branch information
locao committed Apr 25, 2024
1 parent f1e30bb commit fed7930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/resty/dns/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ local function execute_toip(qname, port, dnsCacheOnly, try_list, force_no_sync)
-- our SRV entry might still contain a hostname, so recurse, with found port number
local srvport = (entry.port ~= 0 and entry.port) or port -- discard port if it is 0
add_status_to_try_list(try_list, "dereferencing SRV")
return execute_toip(entry.target, srvport, dnsCacheOnly, try_list)
return execute_toip(entry.target, srvport, dnsCacheOnly, try_list, force_no_sync)
end

-- must be A or AAAA
Expand Down

0 comments on commit fed7930

Please sign in to comment.