sftp: limit max file list
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
e0c1b974c9
commit
8bc08b25dc
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ func (c *Configuration) Initialize(configDir string) error {
|
||||||
logger.Debug(logSender, "", "minimum key size allowed for diffie-ellman-group-exchange: %d",
|
logger.Debug(logSender, "", "minimum key size allowed for diffie-ellman-group-exchange: %d",
|
||||||
ssh.GetDHKexServerMinBits())
|
ssh.GetDHKexServerMinBits())
|
||||||
sftp.SetSFTPExtensions(sftpExtensions...) //nolint:errcheck // we configure valid SFTP Extensions so we cannot get an error
|
sftp.SetSFTPExtensions(sftpExtensions...) //nolint:errcheck // we configure valid SFTP Extensions so we cannot get an error
|
||||||
sftp.MaxFilelist = vfs.ListerBatchSize
|
sftp.MaxFilelist = 250
|
||||||
|
|
||||||
if err := c.configureSecurityOptions(serverConfig); err != nil {
|
if err := c.configureSecurityOptions(serverConfig); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue