From 20bfcea0bd2c4a5ac13bdf1120af06e33f5541ff Mon Sep 17 00:00:00 2001 From: ProBrian Date: Tue, 13 Aug 2024 15:21:19 +0800 Subject: [PATCH] remove extra dns init code in globalpatch --- kong/globalpatches.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kong/globalpatches.lua b/kong/globalpatches.lua index 8d2a318568e3..561eea8a74b1 100644 --- a/kong/globalpatches.lua +++ b/kong/globalpatches.lua @@ -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