parsing a wireguard configuration
Find a file
Vincent Batts 823fe02331
updates from 2021-04-21
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-02-17 11:06:30 -05:00
conf updates from 2021-04-21 2023-02-17 11:06:30 -05:00
go.mod updates from 2021-04-21 2023-02-17 11:06:30 -05:00
go.sum updates from 2021-04-21 2023-02-17 11:06:30 -05: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