SagerNet / SagerNet/sing-box

1.12.0-alpha.18 Endpoints wireguard无法正常启动

Open
#2,735 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug not following template
Dominant language
Go
Stars
38.1k
Forks
4.6k
Avg merge
19d 15h
Merged PRs (30d)
1

Description

操作系统

Linux

系统版本

Debian GNU/Linux 11 (bullseye)

安装类型

sing-box 原始命令行程序

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

No response

版本
sing-box version 1.12.0-alpha.18
描述

同样的Endpoints 配置在 1.11.5 可以正常启动,并且通过 netstat 可以看到在 endpoints 中wireguard指定的端口处于监听的状态。但是切换到 1.12.0-alpha.18 版本后,启动 sing-box 虽然不报错,但是服务不能正常运行,netstat 查看指定的端口也不处于监听的状态。

重现方式
  1. 先使用稳定版 1.11.5, 配置好 endpoint wireguard后,netstat 查看该服务端口正常监听。同时对端也可以正常链接
  2. 切换到 1.12.0.alpha.18,按照 migration 建议修改 dns 部分适配 1.12,然后启动 sing-box,netstat 查看端口,服务并没有启动监听,同时对端也无法链接。
日志
在log文件中出现了:
+0800 2025-03-19 13:35:05 WARN endpoint/wireguard[wg-ep]: enable UDP offload: invalid argument
+0800 2025-03-19 13:35:58 WARN endpoint/wireguard[wg-ep]: enable UDP offload: invalid argument
+0800 2025-03-19 13:37:52 WARN endpoint/wireguard[wg-ep]: enable UDP offload: invalid argument
支持我们
完整性要求
  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the endpoint/wireguard entry point and reproduce the behavior on sing-box 1.11.5 and 1.12.0-alpha.18 using the reported UDP offload warning. Compare startup and listening behavior across versions; done means identifying the regression and confirming that the endpoint listens and the peer can connect.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.