mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-08-03 00:51:24 -07:00
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:
@@ -55,6 +55,8 @@ pub struct RosenpassPeer {
|
||||
pub struct WireGuard {
|
||||
pub device: String,
|
||||
pub peer: String,
|
||||
|
||||
#[serde(default)]
|
||||
pub extra_params: Vec<String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user