Skip to content

Commit

Permalink
remove extra dns init code in globalpatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ProBrian committed Aug 13, 2024
1 parent f26d4a4 commit 20bfcea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kong/globalpatches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ return function(options)

local client = package.loaded["kong.resty.dns.client"]
if not client then
client = require("kong.tools.dns")()
-- just require without dns client init, because we only want `toip` function
client = require("kong.resty.dns.client")
end

--- Patch the TCP connect and UDP setpeername methods such that all
Expand Down

0 comments on commit 20bfcea

Please sign in to comment.