From 57cd20bb84e2fd80497de4123891b31ee6c86321 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Mon, 6 Apr 2020 12:22:47 -0400 Subject: [PATCH] Fixed the condition to show 'chunks are encrypted' messages 'File/Metadata chunks are encrypted' were always shown even if the storage wasn't encrypted. --- src/duplicacy_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duplicacy_config.go b/src/duplicacy_config.go index d2eef8f..6692fea 100644 --- a/src/duplicacy_config.go +++ b/src/duplicacy_config.go @@ -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") }