cat << 'EOF' >> ~/.bashrc
proxy() {
if [ -n "$http_proxy" ]; then
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY GRPC_PROXY grpc_proxy
echo "❌ Прокси ВЫКЛЮЧЕН"
else
export http_proxy="http://127.0.0.1:12334"
export https_proxy="http://127.0.0.1:12334"
export HTTP_PROXY="http://127.0.0.1:12334"
export HTTPS_PROXY="http://127.0.0.1:12334"
export ALL_PROXY="socks5://127.0.0.1:12334"
export GRPC_PROXY="http://127.0.0.1:12334"
export grpc_proxy="http://127.0.0.1:12334"
echo "✅ Прокси ВКЛЮЧЕН (127.0.0.1:12334)"
fi
}
EOF
source ~/.bashrc