mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
FTP improvements
- add a setting to require TLS - add symlink support require TLS 1.2 for all TLS connections
This commit is contained in:
@@ -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("", "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user