Skip to content

Commit

Permalink
RiseupVPN: re-run fetches from the API using Tor+Snowflake, if the AP…
Browse files Browse the repository at this point in the history
…I was considered to be blocked
  • Loading branch information
cyBerta committed Mar 4, 2023
1 parent 76ba9f5 commit 8e8d599
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/experiment/riseupvpn/riseupvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,20 @@ func (m Measurer) Run(ctx context.Context, args *model.ExperimentArgs) error {
NoTLSVerify: !testkeys.CACertStatus,
}},
}

for entry := range multi.CollectOverall(ctx, inputs, 1, 50, "riseupvpn", callbacks) {
testkeys.UpdateProviderAPITestKeys(entry)
}

if testkeys.APIStatus == "blocked" {
for _, input := range inputs {
input.Config.Tunnel = "torsf"
}
for entry := range multi.CollectOverall(ctx, inputs, 1, 50, "riseupvpn", callbacks) {
testkeys.UpdateProviderAPITestKeys(entry)
}
}

// test gateways now
testkeys.TransportStatus = map[string]string{}
gateways := parseGateways(testkeys)
Expand Down

0 comments on commit 8e8d599

Please sign in to comment.