Skip to content

Commit

Permalink
fix: wrong key save bug (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzania authored Sep 25, 2023
1 parent 81dc753 commit 72cff84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub async fn save_device_config(
.save(&mut *transaction)
.await
.map_err(|e| e.to_string())?;
let mut keys = WireguardKeys::new(instance.id.unwrap(), private_key, response.device.pubkey);
let mut keys = WireguardKeys::new(instance.id.unwrap(), response.device.pubkey, private_key);
keys.save(&mut *transaction)
.await
.map_err(|err| err.to_string())?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const AddInstanceModalInitStep = () => {
method: 'POST',
headers,
body: JSON.stringify({
pubKey: instance.pubkey,
pubkey: instance.pubkey,
}),
});
return;
Expand Down

0 comments on commit 72cff84

Please sign in to comment.