mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Pass through upstream redirects
This commit is contained in:
@@ -84,7 +84,12 @@ func Listen() {
|
||||
|
||||
webUiHandler := NewWebUiHandler(config, db, api, auth, tunMan)
|
||||
|
||||
httpClient := &http.Client{}
|
||||
httpClient := &http.Client{
|
||||
// Don't follow redirects
|
||||
CheckRedirect: func(req *http.Request, via []*http.Request) error {
|
||||
return http.ErrUseLastResponse
|
||||
},
|
||||
}
|
||||
|
||||
p := &BoringProxy{db, tunMan, httpClient}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user