Add systemd-networkd peer syntax (#92)

Systemd-networkd config file uses ``[WireGuardPeer]`` rather than ``[Peer]``.
This commit is contained in:
mbonino 2022-03-29 09:53:53 +02:00 committed by GitHub
parent 9206a4f595
commit 86cc251954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ pub(crate) fn peer_entry_hashmap_try_from(
cur_block = None; cur_block = None;
} }
if line == "[Peer]" { if line == "[Peer]" || line == "[WireGuardPeer]" {
// start a new block // start a new block
cur_block = Some(Vec::new()); cur_block = Some(Vec::new());
} }