From fab2654c10cf0d0f440970d55bbe5841d93a4ae3 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 19 Mar 2019 01:05:24 +0200 Subject: Use curl command instead of library. Rust packaging is complicated and I don't like it. --- src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config.rs') 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 } -- cgit