mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 15:28:05 +03:00
proxy protocol: improve logging
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -831,6 +831,8 @@ func getProxyPolicy(allowed, skipped []func(net.IP) bool, def proxyproto.Policy)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if def == proxyproto.REQUIRE {
|
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 proxyproto.REJECT, proxyproto.ErrInvalidUpstream
|
||||||
}
|
}
|
||||||
return def, nil
|
return def, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user