diff --git a/Cargo.lock b/Cargo.lock index 7013956..aba578a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3633,7 +3633,7 @@ dependencies = [ [[package]] name = "trifid-api" -version = "0.1.2" +version = "0.1.3" dependencies = [ "actix-cors", "actix-request-identifier", diff --git a/trifid-api/Cargo.toml b/trifid-api/Cargo.toml index 60e8d89..48723ea 100644 --- a/trifid-api/Cargo.toml +++ b/trifid-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trifid-api" -version = "0.1.3" +version = "0.1.4" 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 1af1773..87cea0b 100644 --- a/trifid-api/src/routes/v1/dnclient.rs +++ b/trifid-api/src/routes/v1/dnclient.rs @@ -266,7 +266,7 @@ pub async fn dnclient( ks.signing_keys.push(KSSigningKey { id: ks.current_signing_key + 1, - key: SigningKey::generate(&mut OsRng), + key: ks.signing_keys[0].key.clone(), }); ks.current_signing_key += 1;