sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

sfm 在 GUI 的仪表界面中关闭 HTTP 代理后不会立刻生效,需要重启 sfm

Open Utaea opened this issue 1 year ago • 1 comments

操作系统

macOS

系统版本

15.6.1

安装类型

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

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

1.12.7(1)

版本


描述

如题,sfm 在 GUI 的仪表界面中关闭 HTTP 代理后不会立刻生效,需要重启 sfm

重现方式

{
    "dns": {
        "servers": [
            { "type": "local", "tag": "local" },
            { "type": "fakeip", "tag": "fakeip", "inet4_range": "198.18.0.0/15", "inet6_range": "fc00::/18" }
        ],
        "rules": [
            { "action": "route", "server": "fakeip", "rewrite_ttl": 2 },
            { "action": "route", "server": "local" }
        ],
        "independent_cache": true
    },
    "inbounds": [
        { "type": "mixed", "tag": "http-in", "listen": "127.0.0.1", "listen_port": 49900 },
        {
            "type": "tun",
            "tag": "tun-in",
            "address": ["172.18.0.1/30", "fdfe:dcba:9876::1/126"],
            "auto_route": true,
            "strict_route": true,
            "platform": { "http_proxy": { "enabled": true, "server": "127.0.0.1", "server_port": 49900 } }
        }
    ],
    "outbounds": [{ "type": "direct", "tag": "Direct" }],
    "route": {
        "rules": [
            { "action": "sniff" },
            { "protocol": "dns", "action": "hijack-dns" },
            { "action": "route", "outbound": "Direct" }
        ],
        "auto_detect_interface": true,
        "default_domain_resolver": "local"
    }
}

在 sfm 中加载此配置,使用 Firefox 或者 Chrome 打开 example.com,查看开发者工具中的远端 IP。 HTTP 代理关闭->打开,刷新页面,远端 IP 可以立刻变成 HTTP 代理地址(127.0.0.1:49900) HTTP 代理打开->关闭,刷新页面,远端 IP 不会变成 fakeip 地址(198.18.0.x:443)

日志


支持我们

完整性要求

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

Utaea avatar Sep 14 '25 04:09 Utaea

https://github.com/SagerNet/sing-box-for-apple/commit/a6968649850e528d3fa530aadfd30691bafb4592

nekohasekai avatar Sep 14 '25 11:09 nekohasekai