diff --git a/src/wireguard_config.rs b/src/wireguard_config.rs index 15f5c54..52b2298 100644 --- a/src/wireguard_config.rs +++ b/src/wireguard_config.rs @@ -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()); }