Skip to content

Commit

Permalink
fix: remove sock proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Jun 21, 2024
1 parent 64491a8 commit d5d2324
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,9 @@ for item in json.loads(sys.stdin.read()):

# Proxy
PROXY=http://127.0.0.1:7890 # ss:1088, vr:8001
SOCK_PROXY=socks5://127.0.0.1:7890 # ss:1086, vr:1081
NO_PROXY=10.*.*.*,192.168.*.*,*.local,localhost,127.0.0.1
alias showproxy='echo "proxy=$http_proxy"'
alias setproxy='export http_proxy=$SOCK_PROXY; export https_proxy=$SOCK_PROXY; all_proxy=$SOCK_PROXY; export no_proxy=$NO_PROXY; showproxy'
alias setproxy='export http_proxy=$PROXY; export https_proxy=$PROXY; all_proxy=$PROXY; export no_proxy=$NO_PROXY; showproxy'
alias unsetproxy='export http_proxy=; export https_proxy=; export all_proxy=; export no_proxy=; showproxy'
alias toggleproxy='if [ -n "$http_proxy" ]; then unsetproxy; else setproxy; fi'

Expand Down
3 changes: 0 additions & 3 deletions .zshrc.local
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ fi
# Env
# export EDITOR=vim
PROXY=http://127.0.0.1:7890
SOCK_PROXY=sock5://127.0.0.1:7890
# PROXY2=http://127.0.0.1:8123
# SOCK_PROXY=sock5://127.0.0.1:8124


# Aliases
# alias flush_dns='sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder'
Expand Down

0 comments on commit d5d2324

Please sign in to comment.