1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-15 15:53:26 +00:00

Fixed the condition to show 'chunks are encrypted' messages

'File/Metadata chunks are encrypted' were always shown even if the storage
wasn't encrypted.
This commit is contained in:
Gilbert Chen
2020-04-06 12:22:47 -04:00
parent 0e970da222
commit 57cd20bb84

View File

@@ -172,11 +172,11 @@ func (config *Config) Print() {
LOG_TRACE("CONFIG_INFO", "Hash key: %x", config.HashKey)
LOG_TRACE("CONFIG_INFO", "ID key: %x", config.IDKey)
if len(config.ChunkKey) >= 0 {
if len(config.ChunkKey) > 0 {
LOG_TRACE("CONFIG_INFO", "File chunks are encrypted")
}
if len(config.FileKey) >= 0 {
if len(config.FileKey) > 0 {
LOG_TRACE("CONFIG_INFO", "Metadata chunks are encrypted")
}