Created
September 6, 2018 13:42
-
-
Save lovejavaee/91085af9c0f20416e16b1c11c29ab0f3 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
function proxy_off(){ | |
unset http_proxy | |
unset https_proxy | |
unset socket_proxy | |
echo -e "Proxy Closed!" | |
} | |
function proxy_on() { | |
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" | |
export http_proxy="http://127.0.0.1:1080" | |
export https_proxy=$http_proxy | |
export socket_proxy="socks5://127.0.0.1:1080" | |
echo -e "Proxy Open!" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment