config: Default WireGuard::extra_params to empty Vec

Otherwise, omitting `extra_params` in the configuration file will result in a `WireGuard` configuration object of `None`, even though not specifying `extra_params` is sane.
This commit is contained in:
Lorenz Leutgeb
2023-09-28 11:16:38 +02:00
committed by GitHub
parent b7a76849b7
commit b50820ecc0
+2
View File
@@ -55,6 +55,8 @@ pub struct RosenpassPeer {
pub struct WireGuard {
pub device: String,
pub peer: String,
#[serde(default)]
pub extra_params: Vec<String>,
}