SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
15.38k stars 1.89k forks source link

升级至1.9.x版本后clash_api无法正常工作 #1871

Closed dalamudx closed 1 week ago

dalamudx commented 1 week ago

Operating system

Linux

System version

debian 11

Installation type

Others

If you are using a graphical client, please provide the version of the client.

No response

Version

sing-box version 1.9.3

Environment: go1.22.4 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_ac
me,with_clash_api
Revision: 085f60337799afc906069b540a38368968c123e4
CGO: disabled

Description

客户端配置如下

"experimental": {
    "clash_api": {
      "external_controller": "0.0.0.0:9090",
      "external_ui": "/app/static",
      "external_ui_download_detour": "",
      "external_ui_download_url": "https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip"
    },
    "cache_file": {
      "enabled": true,
      "path": "cache.db",
      "cache_id": "hysteria_profile",
      "store_fakeip": true
    }
  }

运行在自己编译的容器中,退回v1.8.14版本启动后能正常访问clash_api,但是升级到v1.9.x版本,虽然日志提示RESTful API listening at xxxxx,但是打不开UI页面。

Reproduction

升级v1.9.3或者v1.9.2版本无法访问UI页面 降级到v1.8.14及尾钳版本即可正常访问

Logs

+0000 2024-06-16 14:50:13 INFO router: updated default interface eth0, index 2
+0000 2024-06-16 14:50:13 INFO clash-api: restful api listening at [::]:9090
+0000 2024-06-16 14:50:13 INFO inbound/tun[0]: started at tun0
+0000 2024-06-16 14:50:13 INFO sing-box started (0.22s)

Supporter

Integrity requirements