luci-app-openclash: sync source
This commit is contained in:
parent
0f6f432be5
commit
047a9f2692
@ -79,7 +79,7 @@ o.rmempty = false
|
||||
o:depends("type", "ss")
|
||||
|
||||
o = s:option(Value, "psk", translate("Psk"))
|
||||
o.rmempty = true
|
||||
o.rmempty = false
|
||||
o:depends("type", "snell")
|
||||
|
||||
o = s:option(ListValue, "cipher", translate("Encrypt Method"))
|
||||
|
||||
@ -5,8 +5,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="icon" type="image/x-icon" href="https://cdn.jsdelivr.net/gh/Dreamacro/clash/docs/logo.png" />
|
||||
<title>Clash</title>
|
||||
<link href="main.bb3fb413cdb4f6e6f970.css" rel="stylesheet"></head>
|
||||
<link href="main.4b5cbf27214f1ba1bbb6.css" rel="stylesheet"></head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="text/javascript" src="js/1.bundle.bb3fb413cdb4f6e6f970.min.js"></script><script type="text/javascript" src="js/bundle.bb3fb413cdb4f6e6f970.min.js"></script></body>
|
||||
<script type="text/javascript" src="js/1.bundle.4b5cbf27214f1ba1bbb6.min.js"></script><script type="text/javascript" src="js/bundle.4b5cbf27214f1ba1bbb6.min.js"></script></body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -26,8 +26,8 @@ echo "开始更新策略组配置..." >$START_LOG
|
||||
|
||||
awk '/Proxy Group:/,/Rule:/{print}' /etc/openclash/config.yaml 2>/dev/null |sed 's/\"//g' 2>/dev/null |sed "s/\'//g" 2>/dev/null |sed 's/\t/ /g' 2>/dev/null >/tmp/yaml_group.yaml 2>&1
|
||||
|
||||
echo "正在删除旧节点..." >$START_LOG
|
||||
if [ "$servers_update" -ne "1" ] || [ "$servers_if_update" != "1" ] || [ -z "$(grep "config groups" "$CFG_FILE")" ]; then
|
||||
echo "正在删除旧配置..." >$START_LOG
|
||||
#删除策略组
|
||||
while [[ ! -z "$(grep "config groups" "$CFG_FILE")" ]]
|
||||
do
|
||||
|
||||
@ -180,13 +180,13 @@ cat >> "$SERVER_FILE" <<-EOF
|
||||
port: $port
|
||||
psk: $psk
|
||||
EOF
|
||||
if [ ! -z "$obfs_snell" ] && [ ! -z "$host" ]; then
|
||||
if [ "$obfs_snell" != "none" ] && [ ! -z "$host" ]; then
|
||||
cat >> "$SERVER_FILE" <<-EOF
|
||||
obfs-opts:
|
||||
mode: $obfs_snell
|
||||
$host
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user