How to set goproxy to behind corporate proxy

Hi mates! my company has corporate proxy, we need to set the same for npm as well as git. since its been set if i need to add GOPROXY=,direct. i am getting error, since the request is not been sent to company local proxy which will redirect to i can understand its directly sending requests to
but for my situation working in china with internal company proxy couldn’t figure out. i can set the same in my home computer and it works fine since no cooperate proxy. Hope could get some idea. thanks

I can’t say for sure if this is also true for requests to the GOPROXY, though most functions in the go stdlib respect the HTTP_PROXY and HTTPS_PROXY environment variables.

Therefore my guess would be that go itself will do as well.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.