diff options
author | Simon Frei <freisim93@gmail.com> | 2023-03-28 22:47:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 22:47:24 +0200 |
commit | 3a41d4afa5c06682b1d65cedebcfcfd9074ec8a6 (patch) | |
tree | e12876ec262bf2c04a4da0bb27bfbaa7704660d4 | |
parent | 6a66aee48942b4598c6ff7fcaf7b9a369da9a330 (diff) |
lib/model: Set enc. trailer size on pull (ref #8563, #8556) (#8839)v1.23.3-rc.2
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.
-rw-r--r-- | lib/model/sharedpullerstate.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/model/sharedpullerstate.go b/lib/model/sharedpullerstate.go index 9a868a2fb..92598e562 100644 --- a/lib/model/sharedpullerstate.go +++ b/lib/model/sharedpullerstate.go @@ -357,6 +357,7 @@ func (s *sharedPullerState) finalizeEncrypted() error { return err } s.file.Size += trailerSize + s.file.EncryptionTrailerSize = int(trailerSize) return nil } |