parsing a wireguard configuration
|
||
---|---|---|
conf | ||
go.mod | ||
go.sum | ||
LICENSE | ||
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
- https://github.com/WireGuard/wireguard-windows/tree/master/conf - only for windows?
670838c45f/wgengine/wgcfg/parser.go
- only over the uapi