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

naive outbound 相关的2个问题

Open reF1nd opened this issue 1 month ago • 8 comments

操作系统

Windows

系统版本

10.0.19044.6691

安装类型

sing-box 原始命令行程序

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

No response

版本

sing-box version 1.13.0-alpha.29

Environment: go1.25.5 windows/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_acme,with_clash_api,with_tailscale,with_ccm,with_naive_outbound,with_purego,badlinkname,tfogo_checklinkname0
Revision: 311e09e4edf9b2e1cd5d7fb19cfdf26e007df24e
CGO: disabled

描述

  1. Windows 构建,配置只要含有 naive 出站就会报错。
  2. Linux 如果想编译 with_naive_outbound,with_purego ,编译会报错

重现方式

配置文件:

{
    "inbounds": [
        {
            "type": "mixed",
            "tag": "mixed-in",
            "listen": "::",
            "listen_port": 7890
        }
    ],
    "outbounds": [
        {
            "type": "naive",
            "tag": "test",
            "server": "",
            "server_port": 443,
            "username": "",
            "password": "",
            "tls": {
                "enabled": true,
                "server_name": ""
            }
        }
    ]
}

日志

Windows 构建 naive outbound 报错:

FATAL[0000] create service: initialize outbound[0]: cronet: library not found


Linux 编译报错:

package github.com/sagernet/sing-box/cmd/sing-box
	imports github.com/sagernet/sing-box/include
	imports github.com/sagernet/sing-box/protocol/naive
	imports github.com/sagernet/cronet-go/all
	imports github.com/sagernet/cronet-go/lib/linux_amd64: build constraints exclude all Go files in /Users/0/go/pkg/mod/github.com/sagernet/cronet-go/lib/[email protected]

支持我们

完整性要求

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

reF1nd avatar Dec 16 '25 06:12 reF1nd

I‘ve encountered the same issue.

AmberisMyShiba avatar Dec 17 '25 02:12 AmberisMyShiba

The same issue.

A3357 avatar Dec 17 '25 12:12 A3357

I‘ve encountered the same issue.

fetched the latest commit and compiled successfully, but can't run. The error msg like following:

FATAL[0000] create service: initialize outbound[5]: cronet: library not found

AmberisMyShiba avatar Dec 18 '25 01:12 AmberisMyShiba

I‘ve encountered the same issue.

fetched the latest commit and compiled successfully, but can't run. The error msg like following:

FATAL[0000] create service: initialize outbound[5]: cronet: library not found

resolved this issue by copying libcronet.so to the local lib path

AmberisMyShiba avatar Dec 18 '25 02:12 AmberisMyShiba

could you tell me path of the file?

A3357 avatar Dec 18 '25 12:12 A3357

could you tell me path of the file

/usr/local/lib/

AmberisMyShiba avatar Dec 18 '25 12:12 AmberisMyShiba

Thank you, I just checked /usr/local/lib/, the file is missing, where can I download this file?

A3357 avatar Dec 18 '25 13:12 A3357

Thank you, I just checked /usr/local/lib/, the file is missing, where can I download this file?

~go/pkg/mod/github.com/sagernet/cronet-go/

AmberisMyShiba avatar Dec 18 '25 13:12 AmberisMyShiba