例如我想用 Python 自动发邮件,,但是 STMP 是 Gmail 。
我已经有 Shdowsocks 代理并且设置了全局代理,,还是不行。
例如我想用 Python 自动发邮件,,但是 STMP 是 Gmail 。
我已经有 Shdowsocks 代理并且设置了全局代理,,还是不行。
|
hrzhmJan 7, 2016
1
#!/bin/sh
cat <<EOF >> ~/.bash_profile # function start_tuproxy { export http_proxy='' export HTTPS_PROXY='' } function stop_tuproxy { export http_proxy= export HTTPS_PROXY= } EOF |
|
halfcrazyJan 7, 2016
2
proxychains4
|
|
StardusterJan 7, 2016
3
proxychains4+sslocal
|
|
publicAdminJan 7, 2016
4
proxychains4+sslocal +1
|
|
RqPS6rhmP3Nyn3TmJan 7, 2016 via Android
5
@halfcrazy El Capitan 有不关 SIP 也可以使用的方法吗?
|
|
187j3x1Jan 7, 2016
6
|
|
7
export all_proxy=socks5://127.0.0.1:1080
|
|
xpolJan 8, 2016
8
function proxy {
case $1 in [1-9]*) export http_proxy=socks5://127.0.0.1:$1 export https_proxy=$http_proxy git config --global http.proxy $http_proxy git config --global https.proxy $https_proxy ;; off) unset http_proxy unset https_proxy git config --global --unset http.proxy git config --global --unset https.proxy ;; la|lantern) export http_proxy=http://127.0.0.1:8787 export https_proxy=$http_proxy git config --global http.proxy $http_proxy git config --global https.proxy $https_proxy ;; ss|shadowsocks) export http_proxy=socks5://127.0.0.1:1080 export https_proxy=$http_proxy git config --global http.proxy $http_proxy git config --global https.proxy $https_proxy ;; pr|privoxy) export http_proxy=http://127.0.0.1:8118 export https_proxy=$http_proxy git config --global http.proxy $http_proxy git config --global https.proxy $https_proxy ;; "") echo usage: proxy [port\|ss\|shadowsocks\|la\|lantern\|off] ;; esac echo http_proxy=$http_proxy echo https_proxy=$https_proxy } |
|
orcusfoxJan 8, 2016
9
其实只要
http_proxy=socks5://host:port 命令 就可以让这条命令走代理了 http 代理也行 |
|
RqPS6rhmP3Nyn3TmJan 8, 2016
10
@187j3x1 谢谢,发现不是 SIP 的锅,其他程序代理都正常,就是 brew 特别慢, update 至少十分钟
|
|
RqPS6rhmP3Nyn3TmJan 8, 2016
11
Yosemite 正常,升级 El Capitan 之后 brew 基本属于不能用的状态
|