From d5efb431220d55b16c0aa1a7e09b8df40a7ba70c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 22 Aug 2022 15:36:26 +0800 Subject: [PATCH] Fix wrapStackError --- gvisor_err.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gvisor_err.go b/gvisor_err.go index 793b1ad..4964088 100644 --- a/gvisor_err.go +++ b/gvisor_err.go @@ -5,6 +5,7 @@ package tun import ( "net" + E "github.com/sagernet/sing/common/exceptions" "gvisor.dev/gvisor/pkg/tcpip" "gvisor.dev/gvisor/pkg/tcpip/adapters/gonet" ) @@ -55,7 +56,7 @@ func wrapStackError(err tcpip.Error) error { *tcpip.ErrAborted: return net.ErrClosed } - return wrapStackError(err) + return E.New(err.String()) } func wrapError(err error) error {