]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: dns: remove irrelevant dependency on a client connection
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 08:38:45 +0000 (10:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 12:11:57 +0000 (14:11 +0200)
commit45726fd4588d9075632cb09c9cd093d7a67c1159
treef81f17079ff9176b0056a62ad0b6332869957560
parent34ebb5cbab1801b413750ff8eb0025210a6d0123
BUG/MINOR: dns: remove irrelevant dependency on a client connection

The do-resolve action tests for a client connection to the stream and
tries to get the client's address, otherwise it refrains from performing
the resolution. This really makes no sense at all and looks like an
earlier attempt at resolving the client's address to test that the
code was working. Further, it prevents the action from being used
from other places such as an autonomous applet for example, even if
at the moment this use case does not exist.

This patch simply removes the irrelevant test.

This can be backported to 2.0.
src/dns.c