diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 9124902..4a3c385 100644 --- a/src/config.rs +++ b/src/config.rs @@ -34,6 +34,8 @@ pub struct Config { pub ifname: String, #[serde(default = "default_wg_command")] pub wg_command: String, + #[serde(default = "default_curl_command")] + pub curl_command: String, #[serde(flatten)] pub peers: PeerConfig, @@ -60,6 +62,10 @@ fn default_wg_command() -> String { "wg".to_owned() } +fn default_curl_command() -> String { + "curl".to_owned() +} + fn default_min_keepalive() -> u32 { 10 } |