From e4d71fd62f406e5d4918509eb2b19d734f283091 Mon Sep 17 00:00:00 2001 From: core Date: Sat, 24 Jun 2023 10:54:52 -0400 Subject: [PATCH] hotfix response signing --- trifid-api/Cargo.toml | 2 +- trifid-api/src/routes/v1/dnclient.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trifid-api/Cargo.toml b/trifid-api/Cargo.toml index 8aee703..60e8d89 100644 --- a/trifid-api/Cargo.toml +++ b/trifid-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trifid-api" -version = "0.1.2" +version = "0.1.3" edition = "2021" description = "Pure-rust Defined Networking compatible management server" license = "GPL-3.0-or-later" diff --git a/trifid-api/src/routes/v1/dnclient.rs b/trifid-api/src/routes/v1/dnclient.rs index 07f9b5e..1af1773 100644 --- a/trifid-api/src/routes/v1/dnclient.rs +++ b/trifid-api/src/routes/v1/dnclient.rs @@ -322,7 +322,7 @@ pub async fn dnclient( let signing_key = host_in_ks .signing_keys .iter() - .find(|u| u.id == (req.counter as u64) - 1) + .find(|u| u.id == (req.counter as u64)) .unwrap(); let msg = DoUpdateResponse {