mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 07:51:45 +00:00
~bug fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user