]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: dns: use the correct server hostname when resolving
authorWilly Tarreau <w@1wt.eu>
Tue, 8 Sep 2015 14:16:35 +0000 (16:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Sep 2015 14:16:35 +0000 (16:16 +0200)
commit07101d5a162a125232d992648a8598bfdeee3f3f
treee0f7cc244f9273402da7b1adbb3ec36e56129721
parent9f69f46d1f1b1d116c00b4b0483c519747f977b7
BUG/MEDIUM: dns: use the correct server hostname when resolving

The server's host name picked for resolution was incorrect, it did not
skip the address family specifier, did not resolve environment variables,
and messed up with the optional trailing colon.

Instead, let's get the fqdn returned by str2sa_range() and use that
exclusively.
src/server.c