mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-18 14:50:45 +08:00
Feature: bump gVisor to latest version (#376)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build !windows
|
||||
//go:build unix
|
||||
|
||||
package fdbased
|
||||
|
||||
@@ -40,8 +40,9 @@ func (f *FD) Name() string {
|
||||
return strconv.Itoa(f.fd)
|
||||
}
|
||||
|
||||
func (f *FD) Close() error {
|
||||
return unix.Close(f.fd)
|
||||
func (f *FD) Close() {
|
||||
defer f.LinkEndpoint.Close()
|
||||
_ = unix.Close(f.fd)
|
||||
}
|
||||
|
||||
var _ device.Device = (*FD)(nil)
|
||||
|
Reference in New Issue
Block a user