fclash_linux icon indicating copy to clipboard operation
fclash_linux copied to clipboard

建议采用request来获取订阅配置

Open Pylogmon opened this issue 1 year ago • 3 comments

看到你的代码中是使用downloaduri方法来下载订阅配置的,这种方法对于下载一个明确指向文件的订阅链接是没有问题的

比如形如

https://xxx.xyz/abc/config.yml

的订阅地址

但是对于 #13 中提到的这种类型的订阅地址,一般不是直接指向一个文件的 比如形如

https://xxx.xyz?token=abcde

的订阅地址,这种是通过解析你发送的请求给你返回相应的信息,采用downloaduri方法无法下载具体的文件。

建议采用直接发送request请求的方式来获取订阅配置,我在本地使用curl对订阅链接发送加上UA之后的请求是可以正确获取到配置信息的。

我不会dart,所以没法PR,只能来提个issue.

Pylogmon avatar Sep 12 '22 07:09 Pylogmon

如果影响使用,可以手动加一下yaml文件到这里~ $HOME/.local/share/cn.kingtous.fclash/clash

Kingtous avatar Sep 12 '22 08:09 Kingtous