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

windows平台下若external_ui_download_url带有查询参数则会导致加载ui文件失败 #2675

Open
4 of 5 tasks
ericsyj opened this issue Mar 4, 2025 · 0 comments
Open
4 of 5 tasks
Labels
bug Something isn't working

Comments

@ericsyj
Copy link

ericsyj commented Mar 4, 2025

操作系统

Windows

系统版本

windows10

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

sing-box version 1.11.4

Environment: go1.24.0 windows/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: eb07c7a79eeca943370eafea601e87da76c0e57e
CGO: disabled

描述

windows平台下若external_ui_download_url的url带有查询参数则会导致加载ui文件失败,在安卓图形客户端和linux平台则不会出现此问题。

重现方式

clash_api字段使用如下配置:

        "clash_api": {
            "external_controller": "127.0.0.1:9999",
            "external_ui": "ui",
            "external_ui_download_url": "https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip?a=1",
            "external_ui_download_detour": "proxy"
        }

日志

+0800 2025-03-04 20:21:15 ERROR clash-api: download external ui error: open C:\Users\erics\AppData\Local\Temp\gh-pages.zip?a=1481550036: The filename, directory name, or volume label syntax is incorrect.
+0800 2025-03-04 20:21:15 INFO clash-api: restful api listening at 127.0.0.1:9999

支持我们

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
@ericsyj ericsyj changed the title windows平台下若external_ui_download_url的url带有查询参数则会导致加载ui文件失败 windows平台下若external_ui_download_url带有查询参数则会导致加载ui文件失败 Mar 4, 2025
@nekohasekai nekohasekai added the bug Something isn't working label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants