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]使用自定义的toml配置文件,给custom_groups设置timeout不生效 #790

Open
2 tasks done
hu1994101 opened this issue Oct 13, 2024 · 0 comments
Open
2 tasks done

Comments

@hu1994101
Copy link

hu1994101 commented Oct 13, 2024

确认版本最新

  • 我已经确认在最新Action编译的版本中复现

检索issue

  • 我已经确认之前没有issue涉及此BUG

subconverter版本

0.9.0

转换过程

clash订阅转换

转换设置

[[custom_groups]]
name = "♻️ 自动选择"
type = "url-test"
rule = [".*"]
url = "http://www.gstatic.com/generate_204"
interval = 180
timeout = 3
tolerance = 50

复现步骤

修改自定义toml文件,设置timeout为3s,生成clash订阅文件,结果如下:

  • name: ♻️ 自动选择
    type: url-test
    url: http://www.gstatic.com/generate_204
    interval: 180
    tolerance: 50
    proxies:

    • 距离下次重置剩余:17 天
    • 🇭🇰 香港 HK-01
    • 🇭🇰 香港 HK-02
    • 🇭🇰 香港 HK-03

    可以发现并没有生成timeout:3000的clash配置。我查阅代码后发现src/config/binding.h文件里读取timeout是通过conf.Timeout = toml::find_or(v, "timeout", 5);
    比对正常实现的interval和tolerance,应该改成conf.Timeout = toml::find_or(v, "timeout", 5);
    现在clashmeta的timeout的单位是ms,最终生成的配置应该是timeout:3000

期望结果

可以自定义修改custom_groups的timeout值

实际结果

不生效

错误信息

@hu1994101 hu1994101 changed the title [BUG] <title>使用自定义的toml配置文件,给custom_groups设置timeout不生效 [BUG]使用自定义的toml配置文件,给custom_groups设置timeout不生效 Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant