From ea6b8e9154cf6283a39bf41b15d51c05611477c7 Mon Sep 17 00:00:00 2001 From: creating2morrow Date: Sun, 30 Apr 2023 12:17:32 -0400 Subject: [PATCH] fix i2p path for create_tunnel() --- nevmes-core/src/i2p.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nevmes-core/src/i2p.rs b/nevmes-core/src/i2p.rs index 5a8b722..e38971a 100644 --- a/nevmes-core/src/i2p.rs +++ b/nevmes-core/src/i2p.rs @@ -93,7 +93,9 @@ pub async fn start() { fn create_tunnel() { info!("creating tunnel"); - let output = Command::new("./i2p-zero-linux.v1.20/router/bin/tunnel-control.sh") + let args = args::Args::parse(); + let path = args.i2p_zero_dir; + let output = Command::new(format!("{}/router/bin/tunnel-control.sh", path)) .args(["server.create", "127.0.0.1", &format!("{}",utils::get_app_port())]) .spawn() .expect("i2p-zero failed to create a tunnel");