Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 初次订阅时使用 Clash Rust 内核无法切换 vmess 配置,先换其他核心切换配置后再切回即可 #107

Closed
ericclose opened this issue Dec 12, 2023 · 7 comments
Labels
good first issue Good for newcomers S: Blocked Need upstream fix or got updated T: Bug Something isn't working

Comments

@ericclose
Copy link

ericclose commented Dec 12, 2023

Describe the bug
初次订阅时使用 Clash Rust 内核无法切换配置,报错 failed to put configs with status "501"
注意:使用订阅链接为 vmess + websocket + TLS,应该为 clash 核心所支持协议

To Reproduce
复现过程:

  1. 初始安装移除配置文件夹 %USERPROFILE%\.config%USERPROFILE%\AppData\Local\moe.elaina.clash.nyanpasu
  2. 切换 Clash Rust 核心
  3. 订阅 Remote 节点链接
  4. 切换配置

Expected behavior
预期行为:

  • 报错 failed to put configs with status "501"
  • 只要先使用其他核心,然后再切换配置再切换成 Clash Rust 就能正常使用。

Screencast

2023-12-12-09-51-13.mp4

Information

  • OS: Windows 11 Pro 23H2 22631.2715
  • Clash Nyanpasu Version: 1.4.1
  • Clash Core: Clash Rust

Additional context
日志:
2023-12-12-0949.log

@ericclose
Copy link
Author

ericclose commented Dec 12, 2023

已确认。是 clash-rs 的配置弃用问题,你可以去 clash-rs 开一个 issue,让他做一下兼容性适配;这边有空的话吗,也会专门适配下。

ipv6: https://github.com/Watfaq/clash-rs/blob/master/clash_lib/src/config/def.rs#L307-L308
allow-lan: https://github.com/Watfaq/clash-rs/blob/master/clash_lib/src/config/def.rs#L343-L344

#61 类似 issue,但是我使用的订阅配置里的 ipv6allow-lan 是注释的状态

image

image

@ericclose ericclose changed the title [BUG] 初次订阅时使用 Clash Rust 内核无法切换配置 [BUG] 初次订阅时使用 Clash Rust 内核无法切换 vmess 配置,先换其他内核切换配置再切回核心就正常 Dec 12, 2023
@ericclose ericclose changed the title [BUG] 初次订阅时使用 Clash Rust 内核无法切换 vmess 配置,先换其他内核切换配置再切回核心就正常 [BUG] 初次订阅时使用 Clash Rust 内核无法切换 vmess 配置,先换其他核心切换配置后再切回即可 Dec 12, 2023
@greenhat616 greenhat616 added T: Question Further information is requested T: Bug Something isn't working S: Blocked Need upstream fix or got updated good first issue Good for newcomers and removed T: Question Further information is requested labels Dec 12, 2023
@greenhat616
Copy link
Collaborator

greenhat616 commented Dec 12, 2023

1、似乎是 clash-rs 的 API 兼容性问题。需要调查一下 rs 底层是否有不一致的地方。https://github.com/keiko233/clash-nyanpasu/blob/259e348e4d451a4fa4cbe7709f5a043ccfc06ea9/backend/tauri/src/core/clash_api.rs#L9-L26

2、
image
你可以在这里看到运行配置。这两个选项本质上只是对你导入的订阅配置再做一次修改后,使用核心启动该配置。

@ericclose
Copy link
Author

ericclose commented Dec 12, 2023

1、似乎是 clash-rs 的 API 兼容性问题。需要调查一下 rs 底层是否有不一致的地方。

https://github.com/keiko233/clash-nyanpasu/blob/259e348e4d451a4fa4cbe7709f5a043ccfc06ea9/backend/tauri/src/core/clash_api.rs#L9-L26

2、 image 你可以在这里看到运行配置。这两个选项本质上只是对你导入的订阅配置再做一次修改后,使用核心启动该配置。


具体如何实现的我不知道,我可以确定的是直接使用 clash rust 核心,同样的配置可以使用的。就是通过初始配置的 clash-nyanpasu 的 clash rust 核心无法切换到配置,切换其他核心之后再切换回 clash rust 核心就可以了,api 兼容这些我不懂 😿

image

@greenhat616
Copy link
Collaborator

上游已经在 0.1.12 中支持了,这几日会提交个 PR 彻底修复此问题。

@xmh0511
Copy link

xmh0511 commented Jan 1, 2024

上游已经在 0.1.12 中支持了,这几日会提交个 PR 彻底修复此问题。

我现在用的0.1.13内核,切换后节点列表不会发生变化

@greenhat616
Copy link
Collaborator

上游已经在 0.1.12 中支持了,这几日会提交个 PR 彻底修复此问题。

我现在用的0.1.13内核,切换后节点列表不会发生变化

目前还没有修复,周末我看一下.

@ericclose
Copy link
Author

问题已解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers S: Blocked Need upstream fix or got updated T: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants