subsystem mode: advertise the supported extensions

Fixes #889

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2022-06-25 18:05:13 +02:00
parent 9a6b1a1315
commit 5c446ff645
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB

View file

@ -60,6 +60,7 @@ func ServeSubSystemConnection(user *dataprovider.User, connectionID string, read
defer common.Connections.Remove(connection.GetID())
dataprovider.UpdateLastLogin(user)
sftp.SetSFTPExtensions(sftpExtensions...) //nolint:errcheck
server := sftp.NewRequestServer(connection.channel, sftp.Handlers{
FileGet: connection,
FilePut: connection,