I'm trying to use crudini on wireguard's config used by wg-quick.
There's a nice example of this file right on the main page: https://www.wireguard.com/
Let's repeat it here:
[Interface]
PrivateKey = yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=
ListenPort = 51820
[Peer]
PublicKey = xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=
AllowedIPs = 10.192.122.3/32, 10.192.124.1/24
[Peer]
PublicKey = TrMvSoP4jYQlY6RIzBgbssQqY3vxI2Pi+y71lOWWXX0=
AllowedIPs = 10.192.122.4/32, 192.168.0.0/16
Notice the multiple [Peer] sections.
When using crudini on this Peer section, I only get the last section. Did I miss something in the docs ?
I'm trying to use
crudinion wireguard's config used bywg-quick.There's a nice example of this file right on the main page: https://www.wireguard.com/
Let's repeat it here:
Notice the multiple
[Peer]sections.When using crudini on this
Peersection, I only get the last section. Did I miss something in the docs ?