diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 6e5d53a543..b816e358de 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -2170,7 +2170,7 @@ static bool ConNetworkAuthorizedKey(std::span argv) } for (auto [name, authorized_keys] : _console_cmd_authorized_keys) { - if (StrEqualsIgnoreCase(type, name)) continue; + if (!StrEqualsIgnoreCase(type, name)) continue; PerformNetworkAuthorizedKeyAction(name, authorized_keys, action, authorized_key); return true;