Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api add and check peer #593

Open
SheiylaDev opened this issue Jan 27, 2025 · 1 comment
Open

api add and check peer #593

SheiylaDev opened this issue Jan 27, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@SheiylaDev
Copy link

Hello,

Here are my two current problems:

  • addPeers

    • it will be essential to be able to automatically generate a private and public key if you don't fill them in.
    • it would also be preferable for allowed_ips to directly use an unused ip if none is specified.
    • after using the api, return the data received, as it currently returns null.
  • checkPeers

    • It would be nice to be able to check a name in a peers to know if it already exists or not.
@SheiylaDev SheiylaDev added the enhancement New feature or request label Jan 27, 2025
@DaanSelen
Copy link
Collaborator

I think a similar issue is on the Discord, but might a solution like:

curl https://<wgdashboard-api>/api/getWireguardConfigurationInfo?configurationName=<your-configuration-name> | grep "name": "<YOUR PEER NAME>"

Fit temporarily? We can propose it in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants