🌈 Sync 2026-04-30 00:08:21

This commit is contained in:
github-actions[bot] committed 2026-04-30 00:08:21 +08:00
1 parent cf17e39981
commit 29a6301072
11 files changed
+204 -32

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/sh
# generate secret key
if uci -q get teleproxy.default.secret >/dev/null || [ -z "$(uci get teleproxy.default.secret)" ]; then
[ -n "$(uci -q get teleproxy.default.secret)" ] || {
#SECRET=$(dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -v -e '16/1 "%02x"')
SECRET=$(/usr/bin/teleproxy generate-secret)
uci set teleproxy.default.secret="$SECRET"
uci commit teleproxy
fi
}