FTP improvements

- add a setting to require TLS
- add symlink support

require TLS 1.2 for all TLS connections
This commit is contained in:
Nicola Murino
2020-08-15 13:02:25 +02:00
parent fe857dcb1b
commit 196a56726e
12 changed files with 103 additions and 32 deletions

View File

@@ -61,6 +61,7 @@ func (s *webDavServer) listenAndServe() error {
if s.certMgr != nil {
httpServer.TLSConfig = &tls.Config{
GetCertificate: s.certMgr.GetCertificateFunc(),
MinVersion: tls.VersionTLS12,
}
return httpServer.ListenAndServeTLS("", "")
}