parsing a wireguard configuration
Vincent Batts
d5812860fc
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> |
||
---|---|---|
conf | ||
go.mod | ||
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