Skip to content

Conversation

@noctiro
Copy link
Contributor

@noctiro noctiro commented May 31, 2025

🤔 This is a ...

  • New feature
  • Bug fix
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

💡 Background and solution

This pull request enhances the rule_provider configuration in accordance with the Mihomo specification (Chinese version).

Background:

The previous implementation required users to manually specify path and interval, and did not support the new mrs format.

Solution:

  • Added support for the format field, including the mrs format.
  • The path field is now optional. If omitted, it defaults to rules/xxx with the filename generated via MD5 hash of the source URL.
  • The interval field is also now optional and defaults to 0 if not specified.

These improvements simplify configuration and enhance compatibility with Mihomo.

📝 Changelog

  • Support for mrs format added in rule_provider.
  • path field is now optional and auto-generated via MD5 if missing.
  • interval field is now optional, defaulting to 0.

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Changelog is provided or not needed

@codecov
Copy link

codecov bot commented Jun 1, 2025

Copy link
Member

@ibigbug ibigbug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ibigbug ibigbug merged commit eaac284 into Watfaq:master Jun 1, 2025
31 of 32 checks passed
@noctiro noctiro deleted the new-pr-branch branch June 1, 2025 02:04
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.

2 participants