Explorar el Código

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.
Simon Frei hace 3 años
padre
commit
3a41d4afa5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lib/model/sharedpullerstate.go

+ 1 - 0
lib/model/sharedpullerstate.go

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