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

V7.2 TODO #710

Merged
merged 209 commits into from
Dec 6, 2024
Merged

V7.2 TODO #710

merged 209 commits into from
Dec 6, 2024

Conversation

Gaojianli
Copy link
Member

@Gaojianli Gaojianli commented Nov 8, 2024

需要注意

本版本的 docker-compose.yml 包含新的更改,如果您正在使用 Docker Compose 部署,请更新您的 docker-compose.yml 文件。

对于群晖套件用户,升级套件时相关脚本将自动更新。

新功能

IPFS/IPNS 规则订阅支持

作为 #622 的一部分,本次 v7.2 版本中新增了 IPFS/IPNS 去中心化网络支持。IPFS(星际文件系统) 是一个类似 BitTorrent 的完全去中心化点到点超媒体传输协议,而 IPNS 则充当 IPFS 网络中的 DNS。

要使用 IPFS/IPNS 规则订阅,则需要部署 Kubo IPFS 客户端,并在实验室中启用 IPFS 实验。启用后,您就可以使用 IPFS 和 IPNS 协议地址来添加订阅。

您可以在配置文件中修改 Kubo RPC 地址为您自行安装的 Kubo IPFS 客户端,或者使用新的 docker-compose.yml 部署,将会自动配置 IPFS 客户端。

  • 对于 IPFS 来说,你需要使用 ipfs://CID 格式的 URL,但缺点是每个文件被提交到 IPFS 后都无法再次被修改
  • 您也可以使用 IPNS,IPNS 是可修改的,并可以指向任意 CID,格式为 ipns://ID,你可以在 IPFS Desktop 中将不同的文件发布到同一个 IPNS 上来完成更新操作

同时,PeerBanHelper 也会每隔 1 个小时(可修改)将自身的 Banlist 发布到 IPFS 和 IPNS 上,IPNS 地址可在 IPFS 客户端上看到。如果您的 IPFS 客户端连接了多个 PeerBanHelper 客户端,则您可以通过后缀(安装ID)来识别不同的 PeerBanHelper 客户端。

image

使用 IPFS 网络可以做到人人都能分发规则,且无需购买服务器。使用的人越多,则帮助你一起分发规则的人也越多。

部分下载的反吸血算法改进

现在进度反作弊(PCB)能够正确识别和计算未完整下载的种子(或者部分做种的种子)#748,并正确进行反吸血。
新的反吸血算法支持 PBH 支持的所有下载器类型。

实验室

实验室是在 v7.2 版本引入的新的测试机制。当我们有重大功能性更新时,我们可能会先将其添加到实验室中以测试稳定性和收集用户建议。
PeerBanHelper 会根据您的安装 ID 计算您所在的测试组。只有当实验面向您所在的测试组进行测试时,实验才会默认启用。
但无论如何,您随时都可以主动启动或者停用某个实验。

用户体验改进

DEB 安装包改进

感谢 @Anuskuss ,本次更新后,使用 DEB 安装包安装 PeerBanHepler 的用户将会将数据文件和 PBH 主程序安装到更合适的位置。本次更新也同时改进了日志记录功能。

旧版本的用户数据将会自动迁移。

Install4j 的自动更新支持

在 v7.2 版本中,对 install4j 的安装程序安装的 PeerBanHelper 引入了自动更新支持。在 PeerBanHelper 启动时,更新程序会在后台检查并下载新的更新。下次启动 PeerBanHelper 时,将自动运行更新安装程序并自动升级。

群晖用户将继续使用现有的群晖套件中心升级;Docker 用户请使用 watchtower 自动更新;deb/rpm 用户的更新由包管理器管理。

性能优化

  • 改进了加载 BTN 规则时产生的内存尖峰,避免极端情况下可能导致 OOM 的问题
  • 改进了例外列表 IP 判断的性能和内存占用

PBH Plus 许可证更改

在 v7.2 版本中,原先的捐赠用户功能现在对所有用户开放,您可以在许可证对话框中获取 15 天的循环许可证并直接免费激活所有过去仅限捐赠用户使用的功能。新的免费许可证在功能上与通过爱发电捐赠获取的 PBH Plus 许可证完全相同,但有效期只有 15 天。 今后Plus 用户的福利将集中在SaaS等基于服务端的方向,请敬请期待
当免费许可证过期后,您可以遵循相同的步骤,重新获取 15 天的循环许可证。如果 PeerBanHelper 帮助到了你,请考虑在爱发电上支持我们


Copy link
Contributor

coderabbitai bot commented Nov 8, 2024

Important

Review skipped

More than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review.

75 files out of 165 files are above the max files limit of 75. Please upgrade to Pro plan to get higher limits.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@CreeperAWA
Copy link
Contributor

我机翻了一份英文的 README.md 并完善了中文的 README.md,提交到了 #715

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link

cloudflare-workers-and-pages bot commented Nov 10, 2024

Deploying pbh-fe with  Cloudflare Pages  Cloudflare Pages

Latest commit: ee44c7b
Status: ✅  Deploy successful!
Preview URL: https://af67331b.peerbanhelper.pages.dev
Branch Preview URL: https://dev.peerbanhelper.pages.dev

View logs

renovate bot and others added 25 commits November 11, 2024 04:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Update dependency @vitejs/plugin-vue to v5.2.0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ras-3.x

Update dependency com.formdev:flatlaf-extras to v3.5.2
Update dependency org.springframework:spring-context to v6.2.0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
坏兔子
@Gaojianli Gaojianli marked this pull request as ready for review December 6, 2024 11:51
@Gaojianli Gaojianli requested review from a team as code owners December 6, 2024 11:51
@Gaojianli
Copy link
Member Author

目前还差文档,可以合入了

@Gaojianli Gaojianli enabled auto-merge December 6, 2024 11:52
@Ghost-chu Ghost-chu disabled auto-merge December 6, 2024 11:58
@Ghost-chu Ghost-chu merged commit 9e9f59c into master Dec 6, 2024
20 checks passed
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

Successfully merging this pull request may close these issues.

5 participants