[X] I have read the documentation and understand the meaning of all configuration items I have written, avoiding a large number of seemingly useful options or default values.
[X] I have not reviewed the documentation and resolve this issue.
[X] I have not searched the Issue Tracker for the problem I am going to raise.
[X] I have tested with the latest Alpha branch version, and the issue still persists.
[X] I have provided server and client configuration files and processes that can reproduce the issue locally, rather than a desensitized complex client configuration file.
[X] I have provided the simplest configuration that can reproduce the error I reported, rather than relying on remote servers, TUN, graphical client interfaces, or other closed-source software.
[X] I have provided complete configuration files and logs, rather than providing only parts that I believe are useful due to confidence in my own intelligence.
Operating System
Linux
System Version
OpenWrt 23.05
Mihomo Version
1.18.5
Configuration File
rule-providers:
MyDirect:
type: http
url: https://example.com/MyDirect.txt
behavior: domain
format: text
Description
如果https://example.com/MyDirect.txt只有一行时,启动会报错
Reproduction Steps
添加rule-provider配置,指向一个内容只有一行的文件/URL
启动
Logs
initial rule provider MyDirect error: file must have a `payload` field
Verify steps
Operating System
Linux
System Version
OpenWrt 23.05
Mihomo Version
1.18.5
Configuration File
Description
如果
https://example.com/MyDirect.txt
只有一行时,启动会报错Reproduction Steps
Logs