summaryrefslogtreecommitdiff
path: root/src/cfg/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfg/config.rs')
-rw-r--r--src/cfg/config.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cfg/config.rs b/src/cfg/config.rs
index 8672433..7c81e21 100644
--- a/src/cfg/config.rs
+++ b/src/cfg/config.rs
@@ -37,6 +37,10 @@ pub struct Repo {
pub repo_url: String,
#[serde(rename = "auto_update")]
pub auto_update: bool,
+ #[serde(rename = "destination")]
+ pub destination: (String, String),
+// #[serde(rename = "arch")]
+// pub arch = arch;
}
#[derive(Deserialize, Debug, Serialize)]
@@ -68,6 +72,8 @@ impl Config {
repo_url: format!("https://mesk.anthrill.i2p/repo/{}/",
std::env::consts::ARCH),
auto_update: true,
+ destination: (String::from("mesk"), String::from("mesk")),
+ // Its a hurt place, you need to generate destinations by i2pd and paste here (to mesk.toml)
},
log: Log {
log_file: String::from("/var/log/mesk.log"),