Skip to content

Commit

Permalink
Merge pull request #43 from bludyh/stable
Browse files Browse the repository at this point in the history
fix: app_state_folder is empty upon pairing
  • Loading branch information
ABeltramo authored Sep 10, 2023
2 parents 0ba8aeb + a8f5860 commit 2a57b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wolf/rest/endpoints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void pair(const std::shared_ptr<typename SimpleWeb::Server<T>::Response> &respon

auto is_paired = xml.template get<int>("root.paired");
if (is_paired == 1) {
state::pair(state->config, state::PairedClient{.client_cert = client_cache.client_cert});
state::pair(state->config, state::PairedClient{.client_cert = client_cache.client_cert, .app_state_folder = std::to_string(std::hash<std::string>{}(client_cache.client_cert))});
logs::log(logs::info, "Succesfully paired {}", client_ip);
} else {
logs::log(logs::warning, "Failed pairing with {}", client_ip);
Expand Down

0 comments on commit 2a57b07

Please sign in to comment.