jamescun / wg-api

WG-API is a JSON-RPC Server for WireGuard
MIT License
151 stars 21 forks source link

Listen on UNIX Sockets #6

Open jamescun opened 4 years ago

jamescun commented 4 years ago

This allows wg-api to listen on a UNIX socket by specifying an absolute path to --listen.

I wonder if the default should be changed to a UNIX socket, I'd prefer wg-api to be secure by default and that is not the current behavior. It would be a breaking change however, but it is probably early enough to do so.

Fixes #3