Skip to content

Commit 73e178c

Browse files
committed
debug
1 parent 6489851 commit 73e178c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tentacle/src/runtime/proxy/socks5_config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ pub(crate) struct Socks5Config {
88

99
// parse proxy url like "socks5://username:password@localhost:1080" to Socks5Config
1010
pub(crate) fn parse(proxy_url: &str) -> io::Result<Socks5Config> {
11-
let parsed_url = url::Url::parse(proxy_url).map_err(io::Error::other)?;
11+
let parsed_url = url::Url::parse(proxy_url)
12+
.map_err(|err| io::Error::other(format!("parse proxy_url {} failed, {}", proxy_url, err)))?;
1213
let scheme = parsed_url.scheme();
1314
match scheme {
1415
"socks5" => {

0 commit comments

Comments
 (0)