Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Dec 19, 2024
1 parent 0b033f4 commit 5cf255c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tentacle/src/runtime/tokio_runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ pub(crate) async fn connect_onion(
"connect_onion need Protocol::Onion3 multiaddr, but got {}",
onion_str
)))?;
let onion_str = onion_str.replace(":", ".onion:");
let onion_address =
shadowsocks::relay::Address::from_str(onion_str).map_err(std::io::Error::other)?;
shadowsocks::relay::Address::from_str(&onion_str).map_err(std::io::Error::other)?;

connect_by_proxy(onion_address, socket_transformer, proxy_config).await
}

0 comments on commit 5cf255c

Please sign in to comment.