From d8d7681fc3e886c24d78860748b019dde072d4d7 Mon Sep 17 00:00:00 2001 From: TotaJ Date: Tue, 7 Sep 2021 11:42:27 +0000 Subject: [PATCH] Fix user mapping bug. --- src/common/port/cipher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/port/cipher.cpp b/src/common/port/cipher.cpp index 5042d424e..3f04f0bd3 100644 --- a/src/common/port/cipher.cpp +++ b/src/common/port/cipher.cpp @@ -464,7 +464,7 @@ static bool WriteContentToFile(const char* filename, const void* content, size_t /* Judge if the KeyMode is legal */ static bool isModeExists(KeyMode mode) { - if (mode != SERVER_MODE && mode != CLIENT_MODE && + if (mode != SERVER_MODE && mode != CLIENT_MODE && mode != USER_MAPPING_MODE && mode != OBS_MODE && mode != SOURCE_MODE && mode != GDS_MODE) { #ifndef ENABLE_LLT (void)fprintf(stderr, _("AK/SK encrypt/decrypt encounters invalid key mode.\n"));