Skip to content

Commit 7e14e04

Browse files
committed
ipn/proxy: rmv CheckRedirect from Reaches()
For some websites, it breaks TLS cert verification checks
1 parent 7d27341 commit 7e14e04

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

intra/ipn/proxy.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,6 @@ func httpclient(p Proxy, url *url.URL) (client *http.Client) {
433433
}
434434
// Lightweight transport for one-time use
435435
client = &http.Client{
436-
CheckRedirect: func(req *http.Request, via []*http.Request) error {
437-
return http.ErrUseLastResponse // do not follow redirects
438-
},
439436
Timeout: 5 * time.Second,
440437
Transport: &http.Transport{
441438
Dial: func(network, addr string) (net.Conn, error) {

0 commit comments

Comments
 (0)