Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Support #14

Open
aak1247 opened this issue Apr 27, 2022 · 0 comments
Open

Proxy Support #14

aak1247 opened this issue Apr 27, 2022 · 0 comments

Comments

@aak1247
Copy link

aak1247 commented Apr 27, 2022

In some area, network is very unstable, so its useful to support proxy.

When I use proxy, I got this error:

 HTTPS_PROXY=socks5://127.0.0.1:1080  HTTP_PROXY=socks5://127.0.0.1:1080 gvm install 1.16

Downloading Go v1.16... Please wait...
Error while downloading https://storage.googleapis.com/golang/go1.16.windows-amd
64.zip - Get https://storage.googleapis.com/golang/go1.16.windows-amd64.zip: htt
p: error connecting to proxy http://socks5://127.0.0.1:1080: dial tcp: lookup so
cks5: getaddrinfow: No such host is known.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x1 addr=0x0 pc=0x47aa39]

goroutine 1 [running]:
panic(0x779000, 0xc082010080)
        C:/Users/Dan/Desktop/Code/go1.6.2/src/runtime/panic.go:481 +0x3f4
gvm/web.Download(0xc0820101f8, 0x4, 0xc082083d60, 0xd, 0xc0820b6fa0, 0x13, 0x0)
        C:/Users/Dan/Desktop/Scripts/goProjects/src/gvm/web/web.go:28 +0x1539
main.install(0xc0820101f8, 0x4, 0xc082010da5, 0x5, 0xdb82f038184a2a01)
        C:/Users/Dan/Desktop/Scripts/goProjects/src/gvm/main.go:74 +0x455
main.main()
        C:/Users/Dan/Desktop/Scripts/goProjects/src/gvm/main.go:39 +0x7e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant