v1.0.0beta15.1
~新增自定义http/sock5代理认证功能 ~新增支持安装内置yacd面板 ~增加自定义DNS配置功能 ~优化安装脚本 ~修复部分设备无法正常显示局域网连接ip/mac的bug ~修复iptables报错的bug ~同步最新版本Geoip数据库文件
This commit is contained in:
@@ -573,9 +573,11 @@ echo -----------------------------------------------
|
||||
echo -e " 0 返回上级菜单"
|
||||
read -p "请输入对应数字 > " num
|
||||
if [ "$num" = '1' ]; then
|
||||
echo 'function FindProxyForURL(url, host) {' > $dir/pac
|
||||
echo " return \"SOCKS $authentication@$host:$mix_port; PROXY $authentication@$host:$mix_port; DIRECT;\"" >> $dir/pac
|
||||
echo '}' >> $dir/pac
|
||||
cat > $dir/pac <<EOF
|
||||
function FindProxyForURL(url, host) {
|
||||
return "PROXY $authentication@$host:$mix_port; DIRECT;"
|
||||
}
|
||||
EOF
|
||||
echo -e "\033[33mPAC文件已生成!\033[0m"
|
||||
echo -e "PAC地址:\033[32m$pac\033[0m"
|
||||
echo "使用教程:https://baike.baidu.com/item/PAC/16292100"
|
||||
|
||||
Reference in New Issue
Block a user