summaryrefslogtreecommitdiff
path: root/src/cfg
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfg')
-rw-r--r--src/cfg/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cfg/config.rs b/src/cfg/config.rs
index f14ec93..ce9df87 100644
--- a/src/cfg/config.rs
+++ b/src/cfg/config.rs
@@ -39,6 +39,8 @@ pub struct Repo {
pub destination: (String, String),
#[serde(rename = "repo_http_url")]
pub repo_http_url: Option<String>,
+ #[serde(rename = "i2p_http_proxy_port")]
+ pub i2p_http_proxy_port: u16,
// #[serde(rename = "arch")]
// pub arch = arch;
}
@@ -92,6 +94,7 @@ impl Config {
std::env::consts::ARCH
)
.into(),
+ i2p_http_proxy_port: 4444,
// Its a hurt place, you need to generate destinations by i2pd and paste here (to mesk.toml)
// Better to leave it empty or set it to (mesk, mesk), now destination conn not implemented
},
@@ -126,6 +129,7 @@ impl Config {
auto_update: true,
destination: (String::from("mesk"), String::from("mesk")),
repo_http_url: None,
+ i2p_http_proxy_port: 4444,
},
log: Log {
log_file: String::from("/var/log/mesk.log"),