diff --git a/tmp/vmess.sh b/tmp/vmess.sh index c4da9a8..188da78 100644 --- a/tmp/vmess.sh +++ b/tmp/vmess.sh @@ -37,7 +37,7 @@ install_dependencies() { configure_and_transfer() { PORT=$(shuf -i 10000-65535 -n 1) 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 { @@ -93,4 +93,4 @@ install_dependencies configure_and_transfer systemctl restart xray systemctl enable xray -echo -e "${green}Xray 服务已经重新启动。${none}" \ No newline at end of file +echo -e "${green}Xray 服务已经重新启动。${none}"