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

MacOS App Store 安装版本1.11.3, Clash API 接口请求回复内容不完整,不能正常显示Clash面板 #2596

Open
4 of 5 tasks
fengted opened this issue Feb 15, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@fengted
Copy link

fengted commented Feb 15, 2025

操作系统

macOS

系统版本

Sequoia 15.3

安装类型

sing-box for macOS 图形客户端程序

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

1.11.3

版本

描述

浏览器访问Clash API接口,返回index.html内容不完整 (http返回部分内容,512byte) 。

Image

使用Wireshark抓包可见,

Image

序号7 TCP包为sing-box 在9091端口回复的第一个TCP包,序号8 TCP包为client端的确认包,序号9 TCP包为sing-box发出的fin包,主动发起关闭tcp链接。

重现方式

启动sing-box, 命令行 curl http://127.0.0.1:9091/ui/

日志

支持我们

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
@bsdayo
Copy link

bsdayo commented Feb 18, 2025

Same problem there, on Windows 11 24H2 and sing-box 1.11.3.

(Stuck there, the only thing I can do is Ctrl+C)

Image

Part of my config:

{
  "clash_api": {
    "external_controller": "127.0.0.1:9090",
    "external_ui": "C:\\Users\\bs\\Programs\\sing-box\\ui",
    "access_control_allow_origin": "https://yacd.haishan.me",
    "access_control_allow_private_network": true
  }
}

In my own scenario if the response of /proxies is too long, it will also get stripped.

EDIT: Tried all of these:

Image

...with no luck.

The last time I can use it without issue is before I upgraded to 24H2, but I can't figure out what did it break. @fengted is a Mac user but meet the same problem.

EDIT 2: Another try, sing-box 1.11.3 on Arch Linux (WSL2). Running perfectly without meeting this problem, weird.

@nekohasekai nekohasekai added the bug Something isn't working label Feb 18, 2025
@nekohasekai
Copy link
Member

This problem has appeared since macOS 15.0 and only exists in Network Extension, that is, sing-box running from the command line has no such problem. I guess this is due to some kind of problem with Go's http.FileServer combined with the system's security policy (iOS has no such problem at all).

I will try to implement a FileServer myself.

@nekohasekai
Copy link
Member

#2345

@nekohasekai
Copy link
Member

试试 1.12.0-alpha.9

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

3 participants