-
Notifications
You must be signed in to change notification settings - Fork 172
Closed
Description
From expanding the tests on the PR #618 we have found several issues with parse_nameservers function in the gateway/src/resty/resolver.lua file.
Identified Problems
- The bellow expression will do not catch the case where
server == resolverbecause the functionto.stringof the meta tableresolveris concatenating"serverName_ip".."ServerNamePort"
if server and server ~= resolver then
insert(nameservers, nameserver.new(server))
end- The parsing of
search local.domain #foobarbrakes the regex
Those are the identified cases I found that brakes the resolver. Maybe should extend a bit the test cases.
To Do:
- correct
server == resolvercase - correct parsing
search local.domain #foobar
Metadata
Metadata
Assignees
Labels
No labels