Skip to content

Commit

Permalink
fix: http proxy server should return redirect to client #39
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythologyli committed Sep 27, 2023
1 parent 7bf990c commit 65c35aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func newClient() *http.Client {
return socks5proxy.Dial(net, addr)
},
},
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
},
}
}

Expand Down

0 comments on commit 65c35aa

Please sign in to comment.