mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 19:49:24 +00:00
fix i2p path for create_tunnel()
This commit is contained in:
parent
df571e45b0
commit
ea6b8e9154
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue