[2025-07-07 10:23:42]-自动同步
This commit is contained in:
@@ -1,5 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
|
||||
# 定义常量
|
||||
# 标准配置文件URL
|
||||
URL_STANDARD="https://api-suc.0z.gs/sub?target=clash&url=https%3A%2F%2Fcloud.ykkk.tech%2Fconfig%2Fafc7a1f6cfb3e116070a3343070f4407%3Ftypes%3Dtrojan"
|
||||
# vless配置文件URL
|
||||
URL_VLESS="https://zh.momobaby.org/download/clash/162f88213300da0054751916dad20c8f24911f6fc354790286ca4cc5548c7ee8"
|
||||
|
||||
# 标准配置文件路径
|
||||
CLASH_FILE="./index/proxy/clash.yml"
|
||||
BACKUP_STANDARD="./index/proxy/clash_last.yml"
|
||||
|
||||
# vless配置文件路径
|
||||
CLASH_VLESS_FILE="./index/proxy/clash_v.yml"
|
||||
BACKUP_VLESS="./index/proxy/clash_v_last.yml"
|
||||
|
||||
|
||||
|
||||
|
||||
# 定义带颜色和日志级别的日志函数
|
||||
log() {
|
||||
local level=$1
|
||||
@@ -26,20 +45,6 @@ log() {
|
||||
printf "$(date '+%Y-%m-%d %H:%M:%S') ${color_code}[$level]\033[0m $message\n"
|
||||
}
|
||||
|
||||
# 定义常量
|
||||
# 标准配置文件URL
|
||||
URL_STANDARD="https://clashapi.rokeyyan.com/sub?target=clash&url=http%3A%2F%2Fo.nmgjg.com.cn%2Fproxy%2Fmain"
|
||||
# vless配置文件URL
|
||||
URL_VLESS="https://clashapi.rokeyyan.com/sub?target=clash&url=http%3A%2F%2Fo.nmgjg.com.cn%2Fproxy%2Fvless"
|
||||
|
||||
# 标准配置文件路径
|
||||
CLASH_FILE="./index/proxy/clash.yml"
|
||||
BACKUP_STANDARD="./index/proxy/clash_last.yml"
|
||||
|
||||
# vless配置文件路径
|
||||
CLASH_VLESS_FILE="./index/proxy/clash_v.yml"
|
||||
BACKUP_VLESS="./index/proxy/clash_v_last.yml"
|
||||
|
||||
# 创建配置目录
|
||||
mkdir -p "$(dirname "$CLASH_FILE")" 2>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
|
||||
26764
index/proxy/clash.yml
26764
index/proxy/clash.yml
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
4686
index/proxy/clash_v.yml
Executable file
4686
index/proxy/clash_v.yml
Executable file
File diff suppressed because it is too large
Load Diff
4686
index/proxy/clash_v_last.yml
Executable file
4686
index/proxy/clash_v_last.yml
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user