mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 04:43:56 +08:00
🐶 Sync 2026-04-24 20:24:11
This commit is contained in:
1 parent
c03eb2b999
commit
c7fe969808
20 files changed
+7141
-3650
No files matched your search
@@ -0,0 +1,7 @@
|
||||
#!/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"')
|
||||
uci set teleproxy.default.secret="$SECRET"
|
||||
uci commit teleproxy
|
||||
fi
|
||||
Reference in new issue
Block a user