From dd52c26ae1bd6751b99d75d315048d71c592f033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 28 Feb 2024 15:28:30 +0800 Subject: [PATCH] Don't return error in WireGurad client bind --- transport/wireguard/client_bind.go | 1 - 1 file changed, 1 deletion(-) diff --git a/transport/wireguard/client_bind.go b/transport/wireguard/client_bind.go index 4d391205..d39d1bec 100644 --- a/transport/wireguard/client_bind.go +++ b/transport/wireguard/client_bind.go @@ -141,7 +141,6 @@ func (c *ClientBind) Close() error { } select { case <-c.done: - return net.ErrClosed default: close(c.done) }