From 3be632e73e2e896f2058b418f2ee43cd9c41869f Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Sat, 29 Feb 2020 16:04:13 -0400 Subject: [PATCH] Fix auth_level for remote connections The wrong key was being set here (deserialization expects auth_level). --- lokimq/lokimq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lokimq/lokimq.cpp b/lokimq/lokimq.cpp index 4cc9b9e..acd5077 100644 --- a/lokimq/lokimq.cpp +++ b/lokimq/lokimq.cpp @@ -1769,7 +1769,7 @@ ConnectionID LokiMQ::connect_remote(string_view remote, ConnectSuccess on_connec LMQ_TRACE("telling proxy to connect to ", remote, ", id ", id, pubkey.empty() ? "using NULL auth" : ", using CURVE with remote pubkey [" + to_hex(pubkey) + "]"); detail::send_control(get_control_socket(), "CONNECT_REMOTE", bt_serialize({ - {"auth", static_cast>(auth_level)}, + {"auth_level", static_cast>(auth_level)}, {"conn_id", id}, {"connect", reinterpret_cast(new ConnectSuccess{std::move(on_connect)})}, {"failure", reinterpret_cast(new ConnectFailure{std::move(on_failure)})},