parsing a wireguard configuration
Find a file
Vincent Batts d5812860fc
conf: bring over changes from wireguard-windows#10
https://github.com/WireGuard/wireguard-windows/pull/10 don't appear to
be of interest, and now need big rebasing.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-04-21 07:05:50 -04:00
conf conf: bring over changes from wireguard-windows#10 2021-04-21 07:05:50 -04:00
go.mod Initial commit 2021-04-20 11:13:39 -04:00
LICENSE Initial commit 2021-04-20 11:13:39 -04:00
README.md Initial commit 2021-04-20 11:13:39 -04:00

wgconf

The wireguard configuration file is a botched up INI, that allows duplicate [Peer] sections. Because of this, none of the existing INI parsers handle it correctly (only results in the first or last section, depending on the parser).

Ideally, the lexer could just smoothly go between JSON/YAML.

References