mirror of
https://github.com/233boy/sing-box.git
synced 2026-05-02 22:04:40 +08:00
fix ss2022 key err
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
args=$@
|
||||
is_sh_ver=v1.10
|
||||
is_sh_ver=v1.11
|
||||
|
||||
. /etc/sing-box/sh/src/init.sh
|
||||
@@ -655,7 +655,7 @@ del() {
|
||||
[[ ! $old_host ]] && return # no host exist or not set new host;
|
||||
is_del_host=$old_host
|
||||
}
|
||||
[[ $is_del_host && $host != $old_host && ! $is_no_auto_tls ]] && {
|
||||
[[ $is_del_host && $host != $old_host && -f $is_caddy_conf/$is_del_host.conf ]] && {
|
||||
rm -rf $is_caddy_conf/$is_del_host.conf $is_caddy_conf/$is_del_host.conf.add
|
||||
[[ ! $is_new_json ]] && manage restart caddy &
|
||||
}
|
||||
@@ -1199,7 +1199,11 @@ get() {
|
||||
fi
|
||||
;;
|
||||
ssss | ss2022)
|
||||
if [[ $(grep 128 <<<$ss_method) ]]; then
|
||||
$is_core_bin generate rand 16 --base64
|
||||
else
|
||||
$is_core_bin generate rand 32 --base64
|
||||
fi
|
||||
;;
|
||||
ping)
|
||||
# is_ip_type="-4"
|
||||
|
||||
Reference in New Issue
Block a user