v1.2.3-test

~增加开启外网远程访问SSH的功能(限openwrt设备)
~修复部分设备始终提示证书错误的bug
This commit is contained in:
juewuy
2021-04-15 16:50:56 +08:00
parent 8076b752f7
commit 6945287e11
4 changed files with 105 additions and 4 deletions

View File

@@ -651,6 +651,12 @@ getcrt(){
else
echo -----------------------------------------------
mv -f /tmp/ca-certificates.crt $crtdir
webget /tmp/ssl_test https://baidu.com echooff rediron skipceroff
if [ "$result" != "200" ];then
export CURL_CA_BUNDLE=$crtdir
echo "export CURL_CA_BUNDLE=$crtdir" >> /etc/profile
fi
rm -rf /tmp/ssl_test
echo -e "\033[32m证书安装成功\033[0m"
sleep 1
fi
@@ -838,6 +844,7 @@ update(){
sed -i '/export clashdir=*/'d $profile
sed -i '/all_proxy/'d $profile
sed -i '/ALL_PROXY/'d $profile
sed -i "/启用外网访问SSH服务/d" /etc/firewall.user
rm -rf $clashdir
rm -rf /etc/init.d/clash
rm -rf /etc/systemd/system/clash.service