FokiDoki / WireRest

REST API for Wireguard
MIT License
18 stars 5 forks source link

Saving the config is not on every client (Rate limit). Improved performance on large configs #40

Closed FokiDoki closed 1 year ago

FokiDoki commented 1 year ago

Now the config is not saved after each created peer. Saving occurs no more frequently than wg.config.save.min-interval ms. (2000 by default) look at the diagram. Vertical axis - time to generate a new client (Fully automatic generation including PSK), Horizontal axis - number of already added clients

draw

The new version is almost independent of the number of existing clients, and generates clients in a stable time