Comments (3)
Hi @Ange-Cesari
We've just completed the refactor and made the first actual release (v0.2.0). I've tried to clean up the existing code as much as possible and add a common Trait
which enables us to have a consistent management API between different platforms/implementations. This should make it easier to add more integrations in a sort of "plugin" approach. Personally I hope to have some free time to add a Mikrotik integration for my own homelab use :)
Going back to the original question - current API exposes two methods related to managing peers:
configure_peer(&self, peer: &Peer)
remove_peer(&self, peer_pubkey: &Key)
configure_peer
can be used to both add a completely new peer or configure an existing one. You can think of it as an UPSERT
query in SQL.
So to reconfigure a peer you should be able to just use configure_peer
with no additional steps necessary.
from wireguard-rs.
@wojcik91 is doing some cleanup and rewrite - @wojcik91 could you comment regarding release we plan tomorrow/Monday?
from wireguard-rs.
Hello @wojcik91
I see that you've done some changes on the code.
Could you please give some informations, is the release complete ?
Thanks,
Ange
from wireguard-rs.
Related Issues (20)
- Add Windows support for defguard client HOT 4
- Wireguard-rs on crates.io HOT 1
- Presharedkey support HOT 8
- Can clone trait cause damage to host and WGApi ? HOT 3
- OS Error 19 with defguard_wireguard_rs 0.2.0 from crates.io for the server example HOT 1
- Unable to change existing WireGuard interface address on Linux HOT 1
- Sequence of creating peers and host blurry HOT 3
- Mutiple allowed ips not working in peer (wg show) HOT 1
- Enrich example with how to use preshared key inside the server.rs
- Route adding when creating the interface not working
- Mandatory steps for configuring the peer ?
- Clone trait for the WGApi ? HOT 1
- Release wireguard-rs 0.3
- After disconnecting DNS rules are not removed
- Release wireguard_rs 0.3.1
- Provide Example for presharedkey implementation HOT 1
- Update README Wireguard-RS with Windows
- Remove sensitive info from debug logs on Windows
- Add option to set MTU
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireguard-rs.