Mikubill / cowtransfer-uploader

Simple Cowtransfer Uploader/Downloader in Golang
MIT License
436 stars 58 forks source link

Https proxy #21

Closed stevewongv closed 4 years ago

stevewongv commented 4 years ago

服务器上需要通过https proxy 访问外网,直接下载会报如下错误: Error: getDownloadDetails returns error: Get "https://cowtransfer.com/transfer/transferdetail?url=xxxxxxxxxxx&treceive=undefined&passcode=": proxyconnect tcp: tls: first record does not look like a TLS handshake%

Mikubill commented 4 years ago

可以试试使用HTTP_PROXY(不是HTTPS_PROXY)变量指定https proxy(via https://golang.org/doc/go1.10#net/http

stevewongv commented 4 years ago

Ok,解决,感谢🙏