From 709b47fae8d6bb65111e389fa25e27ddf084a491 Mon Sep 17 00:00:00 2001 From: "lokesh.balla" Date: Tue, 12 Mar 2024 13:10:13 +0530 Subject: [PATCH] update proxy env vars before testing for connectivity --- proxy/proxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/proxy.go b/proxy/proxy.go index 7d4050c838..21b174c351 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -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() }