diff --git a/Changelog.md b/Changelog.md index 437d4ef3d..b649ddbeb 100644 --- a/Changelog.md +++ b/Changelog.md @@ -33,6 +33,7 @@ - 修复 URL Schemes 无法正常导入 - 修复 Linux 下无法安装 TUN 服务 - 修复可能的端口被占用误报 +- 修复设置允许外部控制来源不能立即生效
✨ 新增功能 diff --git a/src/components/setting/mods/external-controller-cors.tsx b/src/components/setting/mods/external-controller-cors.tsx index 9fd4139a6..28412e6d7 100644 --- a/src/components/setting/mods/external-controller-cors.tsx +++ b/src/components/setting/mods/external-controller-cors.tsx @@ -6,6 +6,7 @@ import { useTranslation } from "react-i18next"; import { BaseDialog, Switch } from "@/components/base"; import { useClash } from "@/hooks/use-clash"; +import { restartCore } from "@/services/cmds"; import { showNotice } from "@/services/notice-service"; // 定义开发环境的URL列表 @@ -134,6 +135,7 @@ export const HeaderConfiguration = forwardRef( ), }, }); + await restartCore(); await mutateClash(); }, {