lib/model: Set enc. trailer size on pull (ref #8563, #8556) (#8839)

In the original fix in #8563 I simply forgot this. Which meant #8556
wasn't actually fixed, as the trialer size would have been 0 (default),
and thus we would have still sent the inflated size to encrypted peers.
This commit is contained in:
Simon Frei 2023-03-28 22:47:24 +02:00 committed by GitHub
parent 6a66aee489
commit 3a41d4afa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,6 +357,7 @@ func (s *sharedPullerState) finalizeEncrypted() error {
return err
}
s.file.Size += trailerSize
s.file.EncryptionTrailerSize = int(trailerSize)
return nil
}