MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
17.04k stars 2.69k forks source link

[Bug] UTF-8 with BOM 编码的 Base64 格式 proxy-provider 文件无法导入节点 #900

Closed Brbrbr1995 closed 2 months ago

Brbrbr1995 commented 11 months ago

Verify steps

Mihomo version

alpha

What OS are you seeing the problem on?

Windows

Mihomo config

proxy-providers:

  VLS:
    type: http
    url: "http://192.168.1.14/Proxy/vless.txt"
    path: ./Provider/Proxy/vless.txt
    interval: 60
    health-check:
      enable: true
      interval: 30
      lazy: false
      url: "https://www.google.com/"

Mihomo log

No response

Description

yaml和url格式正常 path目录无对应文件,面板显示此 provider 0 节点 节点工具导出的就是带BOM的编码

LangzhuYue commented 11 months ago

我出现这问题的还是shellclash偏多,经常都是在window上拿工具批量修改后上次,就多了bom,shellclash就运行不了。openclash我目前没遇到这情况。