From 3b0cba0852a1238222e1e1b470a88abe07b9dfce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 20 Sep 2024 20:12:12 +0800 Subject: [PATCH] Fix wireguard start --- transport/wireguard/device_system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/wireguard/device_system.go b/transport/wireguard/device_system.go index 2c16c53d..36c270f9 100644 --- a/transport/wireguard/device_system.go +++ b/transport/wireguard/device_system.go @@ -57,7 +57,7 @@ func NewSystemDevice(router adapter.Router, interfaceName string, localPrefixes inet4Addresses: inet4Addresses, inet6Addresses: inet6Addresses, gso: gso, - events: make(chan wgTun.Event), + events: make(chan wgTun.Event, 1), }, nil }