donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python & Vue.js
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.65k stars 254 forks source link

All conf files downloaded shows same Public Key. #410

Closed vinaynarasimhan closed 1 month ago

vinaynarasimhan commented 1 month ago

Describe The Problem All conf files downloaded shows same Public Key.

But the file on Dashboard shows proper unique public key. So incase i want to bulk delete a conf using public keys via API, I will have to copy the public keys from gui one by one and then do the api call.

If the conf files get downloaded with correct Public keys. I can run my local script to grep the public keys from the file i want and run the bulk deletion api call.

donaldzou commented 1 month ago

Hi! Could you please elaborate what do you mean by

shows same Public Key

donaldzou commented 1 month ago

Ah I think I know what u mean.. In this case, you could use Get WireGuard Configuration Information to get all the public keys and delete them with the delete peers API.

The reason of all .conf files shows the same public keys is you're seeing the Server's public key, not peers' :)

vinaynarasimhan commented 1 month ago

Got it. Thanks.