subsystem mode: advertise the supported extensions
Fixes #889 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
9a6b1a1315
commit
5c446ff645
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue