]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: resolvers: Use the right server to init DNS streams
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Sep 2026 15:51:07 +0000 (17:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Sep 2026 15:56:07 +0000 (17:56 +0200)
commit15a436ba2885320169dce05eef1df8a04f91c2c5
tree749c8a15e30cf38bc4c84b090951d5fedbb5c2c5
parent10581b95e8a07dd95a98e3cd9d116213a4d63f52
BUG/MEDIUM: resolvers: Use the right server to init DNS streams

During TCP nameservers parsing, the wrong server was selected to initialize
the DNS stream. After the server addition, the first server of the proxy was
selected instead of the last one. So when several TCP nameservers was
defined, only the first one was properly initialized. All others was using
the server created for the first one.

The regression was introduced when the server insertion in the proxy's list
was inverted. The change was not made on the resolvers part. The
proxy_last_server() function must be used instead.

It is a 3.5-specific issue. No backported needed.
src/resolvers.c