Add systemd-networkd peer syntax (#92)
Systemd-networkd config file uses ``[WireGuardPeer]`` rather than ``[Peer]``.
This commit is contained in:
parent
9206a4f595
commit
86cc251954
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ pub(crate) fn peer_entry_hashmap_try_from(
|
|||
cur_block = None;
|
||||
}
|
||||
|
||||
if line == "[Peer]" {
|
||||
if line == "[Peer]" || line == "[WireGuardPeer]" {
|
||||
// start a new block
|
||||
cur_block = Some(Vec::new());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue