函数里的变量, 改为局部变量

This commit is contained in:
Olia Lisa
2026-01-15 14:02:40 +08:00
parent 6ef7ad5744
commit f85766154c
5 changed files with 8 additions and 5 deletions
+1
View File
@@ -66,6 +66,7 @@ create_config(){
echo "请选择配置文件类型:"
echo "1. 创建reality配置"
echo "2. 创建xhttp_reality配置"
local choice
read -p "请输入选择 (1 或 2): " choice
case $choice in
1) create_reality_config ;;