mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
httpd: allow to use proxy protocol
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -128,9 +128,11 @@ func (s *httpdServer) listenAndServe() error {
|
||||
httpServer.TLSConfig.ClientAuth = tls.RequireAndVerifyClientCert
|
||||
httpServer.TLSConfig.VerifyConnection = s.verifyTLSConnection
|
||||
}
|
||||
return util.HTTPListenAndServe(httpServer, s.binding.Address, s.binding.Port, true, logSender)
|
||||
return util.HTTPListenAndServe(httpServer, s.binding.Address, s.binding.Port, true,
|
||||
s.binding.listenerWrapper(), logSender)
|
||||
}
|
||||
return util.HTTPListenAndServe(httpServer, s.binding.Address, s.binding.Port, false, logSender)
|
||||
return util.HTTPListenAndServe(httpServer, s.binding.Address, s.binding.Port, false,
|
||||
s.binding.listenerWrapper(), logSender)
|
||||
}
|
||||
|
||||
func (s *httpdServer) verifyTLSConnection(state tls.ConnectionState) error {
|
||||
|
||||
Reference in New Issue
Block a user