incus-agent: Set SFTP max packet size to 128KiB

Signed-off-by: René Jochum <rene@jochum.dev>
This commit is contained in:
René Jochum 2026-07-29 19:19:19 -04:00 committed by Stéphane Graber
parent fa6d37aa19
commit 82914f8647
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -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
}