DefGuard / wireguard-rs

Rust library providing unified WireGuard interface to native/kernel and userspace implementations
https://github.com/defguard/defguard/
Other
141 stars 14 forks source link

Mandatory steps for configuring the peer ? #25

Open Ange-Cesari opened 11 months ago

Ange-Cesari commented 11 months ago

Hey,

is it mandatory to insert the peer in the host since the host can take the values from the api by reading it ?

I've witnessed that even by reading the api, if you don't "insert" the peer in the host, you don't have the peer inside the host by printing it, even after reading api and affecting the returned value to the host.

Also, If I want to remove a peer to update it, it's not updated in the api, so do I have to remove the peer first and then add the "updated new peer" ? it's like actually doing a -1 +1 with the same peer informations, only the publickey that is changed during the update...

Someone ever got the issue ?