mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
improve FTP support
- allow to disable active mode - allow to disable SITE commands - add optional support for calculating hash value of files - add optional support for the non standard COMB command
This commit is contained in:
@@ -149,7 +149,8 @@ func TestMain(m *testing.M) {
|
||||
Port: 9022,
|
||||
},
|
||||
}
|
||||
sftpdConf.HostKeys = []string{filepath.Join(os.TempDir(), "id_ecdsa")}
|
||||
hostKeyPath := filepath.Join(os.TempDir(), "id_ecdsa")
|
||||
sftpdConf.HostKeys = []string{hostKeyPath}
|
||||
|
||||
webDavConf := config.GetWebDAVDConfig()
|
||||
webDavConf.Bindings = []webdavd.Binding{
|
||||
@@ -217,6 +218,8 @@ func TestMain(m *testing.M) {
|
||||
os.Remove(postConnectPath)
|
||||
os.Remove(certPath)
|
||||
os.Remove(keyPath)
|
||||
os.Remove(hostKeyPath)
|
||||
os.Remove(hostKeyPath + ".pub")
|
||||
os.Exit(exitCode)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user