We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6489851 commit 73e178cCopy full SHA for 73e178c
tentacle/src/runtime/proxy/socks5_config.rs
@@ -8,7 +8,8 @@ pub(crate) struct Socks5Config {
8
9
// parse proxy url like "socks5://username:password@localhost:1080" to Socks5Config
10
pub(crate) fn parse(proxy_url: &str) -> io::Result<Socks5Config> {
11
- let parsed_url = url::Url::parse(proxy_url).map_err(io::Error::other)?;
+ let parsed_url = url::Url::parse(proxy_url)
12
+ .map_err(|err| io::Error::other(format!("parse proxy_url {} failed, {}", proxy_url, err)))?;
13
let scheme = parsed_url.scheme();
14
match scheme {
15
"socks5" => {
0 commit comments