mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 23:53:56 +08:00
update 2026-08-11 20:52:11
This commit is contained in:
1 parent
903417940c
commit
e29cecc3c6
1954 files changed
+37
-1523030
No files matched your search
@@ -51,8 +51,12 @@ uci -q delete passwall.@global_xray[0].route_only
|
||||
for sid in $(uci show passwall | grep "=socks" | awk -F '.' '{print $2}' | awk -F '=' '{print $1}'); do
|
||||
if [ -z "$(echo ${sid} | grep '^socks_')" ]; then
|
||||
new_id="socks_$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 5)"
|
||||
old_ref="Socks_${sid}"
|
||||
uci -q rename passwall.${sid}="${new_id}"
|
||||
unset sid new_id
|
||||
for item in $(uci show passwall | grep "='${old_ref}'\$" | cut -d '=' -sf 1); do
|
||||
uci -q set ${item}="${new_id}"
|
||||
done
|
||||
unset sid new_id old_ref item
|
||||
fi
|
||||
done
|
||||
for sid in $(uci show passwall | grep "@acl_rule" | cut -d '.' -sf 2 | cut -d '=' -sf 1); do
|
||||
|
||||
Reference in new issue
Block a user