You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
背景:有一个公司的域名,dns 查不到(这是符合预期的,确实没有配),请求时需要通过 resolve 手动指定 IP 地址。(域名有 https 所以没法直接请求 ip)
在开启 open clash 后报错 error trying to connect: connection closed via error,关闭 open clash 后正常。
/// Replace client with a resolved client./// Using this, we can request a url with given ip address.pubfnbind_endpoint(&self,domain:&str,endpoint:SocketAddr) -> Result<Self>{#[cfg(test)]let https_only = false;#[cfg(not(test))]let https_only = true;let raw_client = Client::builder().user_agent(self.user_agent).https_only(https_only).resolve(domain, endpoint)// 这一行.build()?;Ok(Self{user_agent:self.user_agent,default_parameters:self.default_parameters,cookie_store:self.cookie_store.clone(),
raw_client,})}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
背景:有一个公司的域名,dns 查不到(这是符合预期的,确实没有配),请求时需要通过 resolve 手动指定 IP 地址。(域名有 https 所以没法直接请求 ip)
在开启 open clash 后报错
error trying to connect: connection closed via error
,关闭 open clash 后正常。Beta Was this translation helpful? Give feedback.
All reactions