Update vmess.sh

This commit is contained in:
NewName
2024-08-12 01:14:51 +08:00
parent cd67f4f3fe
commit 4dc2cbad0d

View File

@@ -37,7 +37,7 @@ install_dependencies() {
configure_and_transfer() { configure_and_transfer() {
PORT=$(shuf -i 10000-65535 -n 1) PORT=$(shuf -i 10000-65535 -n 1)
UUID=$(uuidgen) UUID=$(uuidgen)
RANDOM_PATH=$(cat /dev/urandom | tr -dc 'a-zA-Z' | head -c 11) RANDOM_PATH=$(cat /dev/urandom | tr -dc 'a-zA-Z' | head -c 6)
cat > "$config_file" << EOF cat > "$config_file" << EOF
{ {
@@ -93,4 +93,4 @@ install_dependencies
configure_and_transfer configure_and_transfer
systemctl restart xray systemctl restart xray
systemctl enable xray systemctl enable xray
echo -e "${green}Xray 服务已经重新启动。${none}" echo -e "${green}Xray 服务已经重新启动。${none}"