aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-03-19 01:05:24 +0200
committerHristo Venev <hristo@venev.name>2019-03-19 01:05:24 +0200
commitfab2654c10cf0d0f440970d55bbe5841d93a4ae3 (patch)
tree9ebaabebea3cc67c8ff5dda3676f830bebc91ca3 /src/config.rs
parentd260190b3074d764cf2423b7187dc58cd37b9a7c (diff)
Use curl command instead of library.
Rust packaging is complicated and I don't like it.
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
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
}