From b4acae85b8e39462176785592e2f7d9a6da37e7b Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Thu, 31 Oct 2024 14:30:49 +0100 Subject: [PATCH] proxy protocol: improve logging Signed-off-by: Nicola Murino --- internal/common/common.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/common/common.go b/internal/common/common.go index 510c642a1..7c430a995 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -831,6 +831,8 @@ func getProxyPolicy(allowed, skipped []func(net.IP) bool, def proxyproto.Policy) } if def == proxyproto.REQUIRE { + logger.Debug(logSender, "", "reject connection from ip %q: proxy protocol signature required and not set", + upstreamIP) return proxyproto.REJECT, proxyproto.ErrInvalidUpstream } return def, nil