Fix wrapStackError

This commit is contained in:
世界 2022-08-22 15:36:26 +08:00
parent 8b6630a3b0
commit d5efb43122
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -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 {