mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
incus-agent: Set SFTP max packet size to 128KiB
Signed-off-by: René Jochum <rene@jochum.dev>
This commit is contained in:
parent
fa6d37aa19
commit
82914f8647
@ -71,7 +71,7 @@ func (r *sftpServe) Render(w http.ResponseWriter) error {
|
||||
}
|
||||
|
||||
// Start sftp server.
|
||||
server, err := sftp.NewServer(conn, sftp.WithAllocator(), sftp.WithServerWorkingDirectory(osBaseWorkingDirectory))
|
||||
server, err := sftp.NewServer(conn, sftp.WithAllocator(), sftp.WithServerWorkingDirectory(osBaseWorkingDirectory), sftp.WithMaxTxPacket(128*1024))
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user