修改Reality目标域名, 重启docker容器

This commit is contained in:
Olia Lisa 2025-10-09 22:40:45 +08:00
parent 05bc3fb9b4
commit 48604a2692
2 changed files with 1 additions and 9 deletions

View File

@ -35,12 +35,3 @@ echo "配置文件修改成功!"
echo "新的dest地址为: $dest"
echo "新的serverNames数组为: [\"$domain\"]"
read -p "是否要重启容器? (y/N): " restart_choice
if [[ "$restart_choice" =~ ^[Yy]$ ]]; then
echo "正在重启容器..."
docker-compose -f "$script_dir/../docker-compose.yml" down
docker-compose -f "$script_dir/../docker-compose.yml" up -d
else
echo "已跳过重启,请手动重启容器使配置生效"
fi

View File

@ -49,6 +49,7 @@ main(){
6)
# 修改Reality目标域名
bash ./bin/update_reality_dest.sh
restart_docker
;;
0)
# 退出