git服务器迁移到美国凤凰城后第一次提交

This commit is contained in:
Luk Lu
2023-03-05 15:23:46 +08:00
parent 2657f84c2c
commit dd3c8ab167
12 changed files with 113 additions and 44 deletions

View File

@@ -1,15 +1,15 @@
#!/bin/bash
function proxy(){
echo "=== 开启或关闭网络代理? u for up, d for down, anything else for no change."
echo "=== 开启或关闭网络代理? s for start, t for terminate, anything else for no change."
read -p ">>> " proxySwitch
if [ $proxySwitch ] && [ $proxySwitch == "u" ]
if [ $proxySwitch ] && [ $proxySwitch == "s" ]
then
export ALL_PROXY=socks5://127.0.0.1:1090
export http_proxy=http://127.0.0.1:41091
export https_proxy=https://127.0.0.1:41091
export ALL_PROXY=socks5://127.0.0.1:1086
export http_proxy=http://127.0.0.1:8090
export https_proxy=https://127.0.0.1:8090
echo -e "--- 已开启网络代理"
elif [ $proxySwitch ] && [ $proxySwitch == "d" ]
elif [ $proxySwitch ] && [ $proxySwitch == "t" ]
then
unset ALL_PROXY
unset http_proxy
@@ -18,5 +18,9 @@ function proxy(){
else
echo "--- Nothing changed."
fi
echo 测试 ip.gs, ip.sb, ipinfo.io
curl ipinfo.io
}
proxy