openresty / lua-resty-dns

DNS resolver for the nginx lua module
324 stars 107 forks source link

cleanup some variables/locals and added dot-notation call #28

Closed Tieske closed 6 years ago

Tieske commented 7 years ago

The new function is oddly implemented as a "method" on the module table, only usable with ':' notation call. This change makes it accept both dot and colon notation which better matches user expectations.

Tieske commented 6 years ago

@agentzh since retrans is now fixed, updated this PR according to comments

agentzh commented 6 years ago

@Tieske Merged with fixes in your commit log message. Thanks!