mirror of
https://github.com/bytedance/g3.git
synced 2026-05-22 03:03:39 +00:00
Please check self.task_notes.override_next_proxy().is_some() first.
This commit is contained in:
parent
ea2f004434
commit
5e997d8102
1 changed files with 2 additions and 2 deletions
|
|
@ -124,8 +124,8 @@ impl HttpProxyConnectTask {
|
|||
{
|
||||
// If the next-hop was derived from username params and DNS failed,
|
||||
// treat it as a bad request (400) instead of origin DNS error.
|
||||
if matches!(e, TcpConnectError::ResolveFailed(_))
|
||||
&& self.task_notes.override_next_proxy().is_some()
|
||||
if self.task_notes.override_next_proxy().is_some()
|
||||
&& matches!(e, TcpConnectError::ResolveFailed(_))
|
||||
{
|
||||
let mut rsp = HttpProxyClientResponse::bad_request(self.http_version);
|
||||
rsp.set_error_message("Proxy targeting didn't find a match");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue