mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
httpd: add mTLS and multiple bindings support
This commit is contained in:
@@ -143,7 +143,7 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
|
||||
httpdConf := config.GetHTTPDConfig()
|
||||
httpdConf.BindPort = 8078
|
||||
httpdConf.Bindings[0].Port = 8078
|
||||
httpdtest.SetBaseURL("http://127.0.0.1:8078")
|
||||
|
||||
// required to test sftpfs
|
||||
@@ -211,7 +211,7 @@ func TestMain(m *testing.M) {
|
||||
}()
|
||||
|
||||
waitTCPListening(webDavConf.Bindings[0].GetAddress())
|
||||
waitTCPListening(fmt.Sprintf("%s:%d", httpdConf.BindAddress, httpdConf.BindPort))
|
||||
waitTCPListening(httpdConf.Bindings[0].GetAddress())
|
||||
waitTCPListening(sftpdConf.Bindings[0].GetAddress())
|
||||
webdavd.ReloadCertificateMgr() //nolint:errcheck
|
||||
|
||||
|
||||
Reference in New Issue
Block a user