From 7903bf57f1d2c7e6efa86fb346b8087fc51bd070 Mon Sep 17 00:00:00 2001 From: An Tran Date: Thu, 17 Oct 2024 18:29:09 +1000 Subject: [PATCH] [cli] Do not perform unnecessary name server initialization --- gateway/src/apicast/cli/environment.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/src/apicast/cli/environment.lua b/gateway/src/apicast/cli/environment.lua index 4b201f28a..0feccddb8 100644 --- a/gateway/src/apicast/cli/environment.lua +++ b/gateway/src/apicast/cli/environment.lua @@ -28,7 +28,7 @@ local function parse_nameservers() local resolver = require('resty.resolver') local nameservers = {} - for _,nameserver in ipairs(resolver.init_nameservers()) do + for _,nameserver in ipairs(resolver.parse_nameservers()) do -- resty.resolver returns nameservers as tables with __tostring metamethod -- unfortunately those objects can't be joined with table.concat -- and have to be converted to strings first