This commit is contained in:
juewuy
2026-01-31 20:01:52 +08:00
parent 41bd93766b
commit 8cab9b5419

View File

@@ -15,9 +15,9 @@ update_servers() { #更新servers.list
gen_ua(){ #自动生成ua gen_ua(){ #自动生成ua
[ -z "$user_agent" -o "$user_agent" = "auto" ] && { [ -z "$user_agent" -o "$user_agent" = "auto" ] && {
if echo "$crashcore" | grep -q 'singbox'; then if echo "$crashcore" | grep -q 'singbox'; then
user_agent="sing-box/singbox/$core_v" user_agent="sing-box/$core_v"
elif [ "$crashcore" = meta ]; then elif [ "$crashcore" = meta ]; then
user_agent="clash.meta/mihomo/$core_v" user_agent="clash.meta/mihomo"
else else
user_agent="clash" user_agent="clash"
fi fi