🔥 Sync 2026-04-25 08:30:25

This commit is contained in:
github-actions[bot] committed 2026-04-25 08:30:25 +08:00
1 parent 0f68b38cfc
commit 631fcf56d3
6 files changed
+11 -8

No files matched your search

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