firezone / wireguardex

Configure WireGuard® interfaces in Elixir using Rust NIFs.
https://hex.pm/packages/wireguardex
Apache License 2.0
71 stars 9 forks source link

Add add_peer function #1

Closed conectado closed 2 years ago

conectado commented 2 years ago

I added the add_peer function and also added a new small to_term_error function to reduce some code duplication when mapping error to the nif error.