BUG/MINOR: connection: always send address-less LOCAL PROXY connections
authorWilly Tarreau <w@1wt.eu>
Tue, 14 Apr 2020 10:54:10 +0000 (12:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Apr 2020 14:10:13 +0000 (16:10 +0200)
commitedeae2af45fe5f918031b559b8cc62d3c3abc919
treef3e086fef17c308721bf0e4e0c69af02105ebed6
parente3d2d4fb283615831379b971ed23958d45b941ca
BUG/MINOR: connection: always send address-less LOCAL PROXY connections

Commit 7f26391bc5 ("BUG/MINOR: connection: make sure to correctly tag
local PROXY connections") revealed that some implementations do not
properly ignore addresses in LOCAL connections (at least Dovecot was
spotted). More context information in the thread below:

   https://www.mail-archive.com/haproxy@formilux.org/msg36890.html

The patch above was using LOCAL on top of local addresses in order to
minimize the risk of breakage but revealed worse than a clean fix. So
let's partially revert it and send pure LOCAL connections instead now.

After a bit of observation, this patch should be progressively backported
to stable branches. However if it reveals new breakage, the backport of
the patch above will have to be reverted from stable branches while other
products work on fixing their code based on the master branch.

(cherry picked from commit 02c88036a61e09d0676a2b6b4086af677b023b94)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/connection.c