Skip to content

Commit

Permalink
update proxy env vars before testing for connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh.balla committed Mar 12, 2024
1 parent add0cf0 commit 709b47f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ func (p *Proxy) SwitchProxy() error {

rotations := 0
maxRotations := len(p.proxyList)
_ = p.UpdateProxyEnvVars()
ok := p.checkActiveProxyStatus()
for !ok && rotations < maxRotations {
rotations += 1
p.rotateProxy()
_ = p.UpdateProxyEnvVars()
ok = p.checkActiveProxyStatus()
}

Expand Down

0 comments on commit 709b47f

Please sign in to comment.