Skip to content

[BUG] clashctl select 逻辑问题 #214

@taxue-vernon

Description

@taxue-vernon

select功能存在逻辑问题:

(base) root@autodl-container:~/autodl-tmp/clash-for-linux# clashctl select
🚀 当前节点:GLOBAL -> DIRECT
👉 请选择要切换的策略组和节点


🚀 节点切换

📦 请选择策略组:
💡 通常优先选择:节点选择
  1) 📦 自动选择  ->  🚀 🇭🇰香港05 [1×] - Lv.4
  2) 📦 GLOBAL  ->  🚀 DIRECT
  3) 📦 LiltPupu  ( •̀ᴗ•́ )✧  ->  🚀 -
  4) 📦 故障转移  ->  🚀 🇭🇰香港02 [1×] - Lv.4
  q) 退出

> 3
curl: (23) Failure writing output to destination
/root/autodl-tmp/clash-for-linux/scripts/core/clashctl.sh: line 6436: nodes: unbound variable
(base) root@autodl-container:~/autodl-tmp/clash-for-linux# clashctl select
🚀 当前节点:GLOBAL -> DIRECT
👉 请选择要切换的策略组和节点


🚀 节点切换

📦 请选择策略组:
💡 通常优先选择:节点选择
  1) 📦 自动选择  ->  🚀 🇭🇰香港05 [1×] - Lv.4
  2) 📦 GLOBAL  ->  🚀 DIRECT
  3) 📦 LiltPupu  ( •̀ᴗ•́ )✧  ->  🚀 -
  4) 📦 故障转移  ->  🚀 🇭🇰香港02 [1×] - Lv.4
  q) 退出

> 3
curl: (23) Failure writing output to destination
/root/autodl-tmp/clash-for-linux/scripts/core/clashctl.sh: line 6436: nodes: unbound variable
(base) root@autodl-container:~/autodl-tmp/clash-for-linux# clashctl select
🚀 当前节点:GLOBAL -> DIRECT
👉 请选择要切换的策略组和节点


🚀 节点切换

📦 请选择策略组:
💡 通常优先选择:节点选择
  1) 📦 自动选择  ->  🚀 🇭🇰香港05 [1×] - Lv.4
  2) 📦 GLOBAL  ->  🚀 DIRECT
  3) 📦 LiltPupu  ( •̀ᴗ•́ )✧  ->  🚀 -
  4) 📦 故障转移  ->  🚀 🇭🇰香港02 [1×] - Lv.4
  q) 退出

> 1

📦 当前策略组:自动选择
🚀 当前节点:🇭🇰香港05 [1×] - Lv.4
📦 当前策略组候选数:29
🔢 全部节点总数:31
ℹ️ 以下仅显示当前策略组可切换节点

🚀 请选择节点:
  1) 🚀 🇭🇰香港01 [1×] - Lv.4
  2) 🚀 🇭🇰香港02 [1×] - Lv.4
  3) 🚀 🇭🇰香港03 [1×] - Lv.4
  4) 🚀 🇭🇰香港04 [1×] - Lv.4
  5) 🚀 🇭🇰香港05 [1×] - Lv.4 [当前]
  q) 退出

> 5

🚀 节点切换完成

📦 已切换策略组:自动选择
🚀 当前节点:🇭🇰香港05 [1×] - Lv.4
🐱 运行状态:已运行
👉 clashctl status

(base) root@autodl-container:~/autodl-tmp/clash-for-linux# 

描述:正常第一步选择3,之后选择具体的节点才对。但是目前的话,我选择3会报错。而且我选择了自动选择之后为什么要让我选择节点?感觉功能的逻辑不太对。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions