parsing a wireguard configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Vincent Batts 56fa2f2258
Initial commit
4 weeks ago
LICENSE Initial commit 4 weeks ago
README.md Initial commit 4 weeks ago
go.mod Initial commit 4 weeks ago

README.md

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