Skip to content

Commit

Permalink
Merge pull request #2 from yury-sannikov/pub_key_error
Browse files Browse the repository at this point in the history
fix pub key load
  • Loading branch information
yury-sannikov authored Mar 2, 2024
2 parents a3294d1 + 74b6921 commit 200e342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luci-app-amneziawg/root/usr/share/rpcd/ucode/luci.amneziawg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const methods = {
generateKeyPair: {
call: function() {
const priv = command('amneziawg genkey 2>/dev/null');
const pub = command(`echo ${shellquote(priv)} | wg pubkey 2>/dev/null`);
const pub = command(`echo ${shellquote(priv)} | amneziawg pubkey 2>/dev/null`);

return { keys: { priv, pub } };
}
Expand All @@ -36,7 +36,7 @@ const methods = {
args: { privkey: "privkey" },
call: function(req) {
const priv = req.args?.privkey;
const pub = command(`echo ${shellquote(priv)} | wg pubkey 2>/dev/null`);
const pub = command(`echo ${shellquote(priv)} | amneziawg pubkey 2>/dev/null`);

return { keys: { priv, pub } };
}
Expand Down

0 comments on commit 200e342

Please sign in to comment.