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 }