Kong / lua-resty-dns-client

Lua DNS client, load balancer, and utility library
http://kong.github.io/lua-resty-dns-client/topics/README.md.html
Apache License 2.0
152 stars 52 forks source link

fix(balancer) use proper dns client #88

Closed Tieske closed 4 years ago

Tieske commented 4 years ago

The balancer was calling toip on the dns-client module, instead of using the dns client passed to it. Since the module is to be used as a singleton anyway, this did not affect any real usage. But in testing the cache would not be properly reset, since there we reload the entire module forcefully.