mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
httpd: allow to use proxy protocol
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -2199,6 +2199,15 @@ func TestAllowedProxyUnixDomainSocket(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestProxyListenerWrapper(t *testing.T) {
|
||||
b := Binding{
|
||||
ProxyMode: 0,
|
||||
}
|
||||
require.Nil(t, b.listenerWrapper())
|
||||
b.ProxyMode = 1
|
||||
require.NotNil(t, b.listenerWrapper())
|
||||
}
|
||||
|
||||
func TestProxyHeaders(t *testing.T) {
|
||||
username := "adminTest"
|
||||
password := "testPwd"
|
||||
|
||||
Reference in New Issue
Block a user