parsing a wireguard configuration
Find a file
Vincent Batts 77158f3dde
conf: add from wireguard-windows/conf/@b73dcdb
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-04-21 07:03:18 -04:00
conf conf: add from wireguard-windows/conf/@b73dcdb 2021-04-21 07:03:18 -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