12 lines
543 B
Markdown
12 lines
543 B
Markdown
# 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?
|
|
- https://github.com/tailscale/tailscale/blob/670838c45f232f2355c9f2ea587cbcef348410f4/wgengine/wgcfg/parser.go - only over the uapi
|
|
|