История изменений
Исправление fractaler, (текущая версия) :
Добавь в профайл
IP=`which ip`
GREP=`which grep`
if [ "a$($IP addr show | $GREP $YOU_LOCAL_IP)" == "a" ]; then
export http_proxy="proxy.ddns.com:8080"
else
export http_proxy="192.168.1.8:8080"
fi
Исходная версия fractaler, :
Добавь в профайл
IP=`which ip`
GREP=`which grep`
if [ "a$(ip addr show | grep $YOU_LOCAL_IP)" == "a" ]; then
export http_proxy="proxy.ddns.com:8080"
else
export http_proxy="192.168.1.8:8080"
fi