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]: 补偿机制模式open_supply不管设置False还是True都都会自动补全什么情况 #813

Closed
4 of 7 tasks
389377616 opened this issue Jan 9, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@389377616
Copy link

Don't skip these steps | 不要跳过这些步骤

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field | 我明白,如果我“故意”删除或跳过任何强制性的*字段,我将被封锁
  • I have checked through the search that there are no similar issues that already exist | 我已经通过搜索仔细检查过没有存在已经创建的相似问题
  • I will not submit any issues that are not related to this project | 我不会提交任何与本项目无关的问题

Occurrence environment | 触发环境

  • Workflow | 工作流
  • GUI | 软件
  • Docker
  • Command line | 命令行

Bug description | 具体描述

比如我设置了结果中偏好的 IPv4 接口数量ipv4_num = 2和结果中偏好的 IPv6 接口数量ipv6_num = 2,单个频道接口数量urls_limit = 10,ipv4和ipv6我都设置的是2,这样按理结果中订阅源的结果最多也就有4个,但是open_supply不管设置False还是True,每次输出结果每个频道都是在上边2个ipv6,2个ipv4,然后随机6个ipv6+ipv4的源,按我的理解是补偿机制模式open_supply关了以后结果应该只有2个ipv6+2个ipv4才正常

Error log | 报错日志

No response

@389377616 389377616 added the bug Something isn't working label Jan 9, 2025
@Guovin
Copy link
Owner

Guovin commented Jan 10, 2025

这是因为目前补偿模式只作用在了对测速排序阶段,在最终结果形成的数量没有进行控制,你设置的总接口数量urls_limit = 10,偏好ipv4_num+ipv6_num=4小于总接口数量,程序以urls_limit的权重更高将结果填充至指定数量,故导致上述情况。可暂时修改urls_limit = 4即可解决,我将修复这个问题。

Guovin added a commit that referenced this issue Jan 10, 2025
@Guovin
Copy link
Owner

Guovin commented Jan 10, 2025

已修复

@Guovin Guovin closed this as completed Jan 10, 2025
@389377616
Copy link
Author

已修复
我安装的是docker版,我看暂时还没有容器新镜像更新嘛,是要等下个版本镜像更新以后才会修复嘛

@Guovin Guovin mentioned this issue Jan 22, 2025
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants