update pkg/sftp

These patches are now merged upstream:

https://github.com/pkg/sftp/pull/392
https://github.com/pkg/sftp/pull/393
This commit is contained in:
Nicola Murino
2020-11-18 19:06:12 +01:00
parent ca0ff0d630
commit 5d789a01b7
3 changed files with 18 additions and 17 deletions

View File

@@ -59,5 +59,6 @@ func ServeSubSystemConnection(user dataprovider.User, connectionID string, reade
FileList: connection,
}, sftp.WithRSAllocator())
defer server.Close()
return server.Serve()
}