sftpd: disable allocator

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-11-21 07:54:48 +01:00
commit cb6609e468
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
2 changed files with 2 additions and 2 deletions

View file

@ -693,7 +693,7 @@ func (c *Configuration) handleSftpConnection(channel ssh.Channel, connection *Co
defer common.Connections.Remove(connection.GetID())
// Create the server instance for the channel using the handler we created above.
server := sftp.NewRequestServer(channel, c.createHandlers(connection), sftp.WithRSAllocator(),
server := sftp.NewRequestServer(channel, c.createHandlers(connection),
sftp.WithStartDirectory(connection.User.Filters.StartDirectory))
defer server.Close()

View file

@ -80,7 +80,7 @@ func ServeSubSystemConnection(user *dataprovider.User, connectionID string, read
FilePut: connection,
FileCmd: connection,
FileList: connection,
}, sftp.WithRSAllocator())
})
defer server.Close()
return server.Serve()