Fix wrapStackError
This commit is contained in:
parent
8b6630a3b0
commit
d5efb43122
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ package tun
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
|
E "github.com/sagernet/sing/common/exceptions"
|
||||||
"gvisor.dev/gvisor/pkg/tcpip"
|
"gvisor.dev/gvisor/pkg/tcpip"
|
||||||
"gvisor.dev/gvisor/pkg/tcpip/adapters/gonet"
|
"gvisor.dev/gvisor/pkg/tcpip/adapters/gonet"
|
||||||
)
|
)
|
||||||
|
|
@ -55,7 +56,7 @@ func wrapStackError(err tcpip.Error) error {
|
||||||
*tcpip.ErrAborted:
|
*tcpip.ErrAborted:
|
||||||
return net.ErrClosed
|
return net.ErrClosed
|
||||||
}
|
}
|
||||||
return wrapStackError(err)
|
return E.New(err.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
func wrapError(err error) error {
|
func wrapError(err error) error {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue