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

feat(balancer) option to return nested SRV name as hostname #89

Closed Tieske closed 4 years ago

Tieske commented 4 years ago

This enables the balancer to return a host-header.

So far the returned "host" was always the name of the host as it was added to the balancer by calling addHost(). With this PR there is a change between the Host as added and the host-header to be used on a request.