Last active
July 2, 2019 05:57
-
-
Save haixinsong/e3046aab5e3dbdb4b22f01b29c1968b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM proxy script for windows cmd/powershell | |
| @echo off | |
| SET proxy_addr=http://127.0.0.1:1080 | |
| SETX>nul http_proxy "%proxy_addr%" | |
| SETX>nul https_proxy "%proxy_addr%" | |
| SETX>nul all_proxy "%proxy_addr%" | |
| SET http_proxy=%proxy_addr% | |
| SET https_proxy=%proxy_addr% | |
| SET all_proxy=%proxy_addr% | |
| echo From now on using %proxy_addr% as proxy server | |
| SET proxy_addr= | |
| @echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment