FTP: add support for ASCII transfer mode

the default remain binary, a client have to explicitly request an
ASCII transfer
This commit is contained in:
Nicola Murino
2020-12-27 09:48:56 +01:00
parent 0c56b6d504
commit b3c6d79f51
3 changed files with 19 additions and 18 deletions

View File

@@ -97,6 +97,7 @@ func (s *Server) GetSettings() (*ftpserver.Settings, error) {
DisableActiveMode: s.config.DisableActiveMode,
EnableHASH: s.config.HASHSupport > 0,
EnableCOMB: s.config.CombineSupport > 0,
DefaultTransferType: ftpserver.TransferTypeBinary,
}, nil
}