santinic / how2

AI for the Command Line
https://how2terminal.com
MIT License
5.72k stars 156 forks source link

Error: tunneling socket could not be established, cause=socket hang up : undefined #40

Closed yejijie closed 2 months ago

yejijie commented 8 years ago

I have to use a http proxy to connect to Google. I get an error:

Cannot connect to Google.
Error: Error on response:Error: tunneling socket could not be established, cause=socket hang up : undefined

Any idea please?

danyshaanan commented 8 years ago

Does this happen with the line mentioned in the readme?

alias how2="HTTPS_PROXY='your_proxy:8888' how2"

(https://github.com/santinic/how2#can-i-use-it-behind-proxy-)

yejijie commented 8 years ago

@danyshaanan Yes, but I use socks5 proxy. Maybe this is the problem. Thanks for your advice.

sisrfeng commented 2 years ago

socks5 proxy

+1

My setting in zshrc

WF_ip='219.222.11.11:4080'
alias export_all_proxy="export ALL_PROXY=socks5://${WF_ip} ; export HTTPS_PROXY=https://${WF_ip} ; export HTTP_PROXY=http://${WF_ip} "

export_all_proxy

How to modify the zshrc to enable how2 ? @yejijie

Thx