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 {