near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
195 stars 94 forks source link

Add http proxy option for near-cli #940

Open nanbatian119 opened 2 years ago

nanbatian119 commented 2 years ago

Problem: I have to use vpn to connect to rpc.testnet.near.org. But It only takes effect in my browser and bash terminal. In near-cli vpn won't works. I guess nodejs program can't use global proxy bring this problem.

Suggest: Near-cli may add http_proxy option for users in case of direct connect problems.

截屏2022-02-19 下午8 49 14
zhang-wenchao commented 2 years ago

I also need this, proxy won't works.

nanbatian119 commented 2 years ago

I also need this, proxy won't works. https://hackmd.io/@L9ZnGph8Tbaio2GVX_z-EA/r15etnPg9) this way has solved my problem

ghost commented 2 years ago

I also need this, proxy won't works. https://hackmd.io/@L9ZnGph8Tbaio2GVX_z-EA/r15etnPg9) this way has solved my problem

thanks for your solution!

xffxff commented 2 years ago

https://hackmd.io/@L9ZnGph8Tbaio2GVX_z-EA/r15etnPg9

Thanks! This worked for me, and can we put it in a more visible place, like the readme

xiangxn commented 1 year ago

All proxy problems can be solved in this way: #1067