mihomo-cli 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.2.3] - 2026-05-01
4
+
5
+ ### 修复
6
+
7
+ - **非 TUN 模式误触 sudo**:修复 `start` 命令在 mixed 模式下停止旧进程时强制使用 sudo 的问题,改为自动检测是否存在 root 进程再决定是否提权
8
+
9
+ ---
10
+
3
11
  ## [2.2.2] - 2026-05-01
4
12
 
5
13
  ### 修复
package/dist/index.js CHANGED
@@ -4993,7 +4993,7 @@ async function cmdStart(args) {
4993
4993
  const count = status.allProcesses.length > 0 ? status.allProcesses.length : 1;
4994
4994
  console.log(`\u505C\u6B62 ${count} \u4E2A\u8FDB\u7A0B...`);
4995
4995
  }
4996
- handleStopResult(stop(true));
4996
+ handleStopResult(stop());
4997
4997
  if (hasProcess) {
4998
4998
  console.log(`${colors.green("\u5DF2\u505C\u6B62\u8FDB\u7A0B")}
4999
4999
  `);
@@ -5028,7 +5028,7 @@ async function cmdStart(args) {
5028
5028
  console.log(`${colors.green("\u5DF2\u6E05\u7406")}: ${formatCleanSummary(cleanResult)}`);
5029
5029
  console.log("");
5030
5030
  console.log("\u91CD\u65B0\u52A0\u8F7D\u914D\u7F6E...");
5031
- handleStopResult(stop(true));
5031
+ handleStopResult(stop());
5032
5032
  try {
5033
5033
  configInfo = prepareConfigForStart(targetMode, sub.name);
5034
5034
  const result = await start(targetMode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mihomo-cli",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "type": "module",
5
5
  "description": "A terminal-based mihomo (Clash.Meta) client for macOS",
6
6
  "bin": {