mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-09-13 03:44:30 +00:00
chore: rand pass for config in install_server.sh
This commit is contained in:
@@ -161,6 +161,10 @@ has_prefix() {
|
||||
[[ "x$_s" != "x${_s#"$_prefix"}" ]]
|
||||
}
|
||||
|
||||
generate_random_password() {
|
||||
dd if=/dev/random bs=18 count=1 status=none | base64
|
||||
}
|
||||
|
||||
systemctl() {
|
||||
if [[ "x$FORCE_NO_SYSTEMD" == "x2" ]] || ! has_command systemctl; then
|
||||
warning "Ignored systemd command: systemctl $@"
|
||||
@@ -681,7 +685,7 @@ acme:
|
||||
|
||||
auth:
|
||||
type: password
|
||||
password: Se7RAuFZ8Lzg
|
||||
password: $(generate_random_password)
|
||||
|
||||
masquerade:
|
||||
type: proxy
|
||||
|
Reference in New Issue
Block a user