Skip to content

Commit

Permalink
Add systemd-networkd peer syntax (#92)
Browse files Browse the repository at this point in the history
Systemd-networkd config file uses ``[WireGuardPeer]`` rather than ``[Peer]``.
  • Loading branch information
mbonino committed Mar 29, 2022
1 parent 9206a4f commit 86cc251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wireguard_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 86cc251

Please sign in to comment.