fix(web_connectivity@v0.5): limit number of redirects (#965)
Part of https://github.com/ooni/probe/issues/2237
This commit is contained in:
parent
700f94b62e
commit
ad01856beb
5 changed files with 81 additions and 44 deletions
|
|
@ -39,6 +39,9 @@ type DNSResolvers struct {
|
|||
// Logger is the MANDATORY logger to use.
|
||||
Logger model.Logger
|
||||
|
||||
// NumRedirects it the MANDATORY counter of the number of redirects.
|
||||
NumRedirects *NumRedirects
|
||||
|
||||
// TestKeys is MANDATORY and contains the TestKeys.
|
||||
TestKeys *TestKeys
|
||||
|
||||
|
|
@ -434,6 +437,7 @@ func (t *DNSResolvers) startCleartextFlows(
|
|||
DNSCache: t.DNSCache,
|
||||
IDGenerator: t.IDGenerator,
|
||||
Logger: t.Logger,
|
||||
NumRedirects: t.NumRedirects,
|
||||
TestKeys: t.TestKeys,
|
||||
ZeroTime: t.ZeroTime,
|
||||
WaitGroup: t.WaitGroup,
|
||||
|
|
@ -475,6 +479,7 @@ func (t *DNSResolvers) startSecureFlows(
|
|||
DNSCache: t.DNSCache,
|
||||
IDGenerator: t.IDGenerator,
|
||||
Logger: t.Logger,
|
||||
NumRedirects: t.NumRedirects,
|
||||
TestKeys: t.TestKeys,
|
||||
ZeroTime: t.ZeroTime,
|
||||
WaitGroup: t.WaitGroup,
|
||||
|
|
|
|||
Loading…
Reference in a new issue