Skip to content

Commit

Permalink
[cli] Do not perform unnecessary name server initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tkan145 committed Oct 21, 2024
1 parent 614e028 commit 0b7b013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/src/apicast/cli/environment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b7b013

Please sign in to comment.