mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-29 06:26:59 +00:00
20 redirects
This commit is contained in:
@@ -114,8 +114,8 @@ func newClient(baseCtx context.Context, dispatcher routing.Dispatcher, outbound
|
|||||||
if req.URL.Scheme != "https" {
|
if req.URL.Scheme != "https" {
|
||||||
return errors.New("redirected to non-https URL: ", req.URL.String())
|
return errors.New("redirected to non-https URL: ", req.URL.String())
|
||||||
}
|
}
|
||||||
if len(via) >= 10 {
|
if len(via) >= 20 {
|
||||||
return errors.New("stopped after 10 redirects")
|
return errors.New("stopped after 20 redirects")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user