mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-09 18:50:26 +08:00
Feature: bump gVisor to latest version (#376)
This commit is contained in:
@@ -3,7 +3,6 @@ package core
|
||||
import (
|
||||
"net"
|
||||
|
||||
"gvisor.dev/gvisor/pkg/tcpip"
|
||||
"gvisor.dev/gvisor/pkg/tcpip/network/ipv4"
|
||||
"gvisor.dev/gvisor/pkg/tcpip/network/ipv6"
|
||||
"gvisor.dev/gvisor/pkg/tcpip/stack"
|
||||
@@ -55,7 +54,7 @@ func CreateStack(cfg *Config) (*stack.Stack, error) {
|
||||
})
|
||||
|
||||
// Generate unique NIC id.
|
||||
nicID := tcpip.NICID(s.UniqueID())
|
||||
nicID := s.NextNICID()
|
||||
|
||||
opts = append(opts,
|
||||
// Important: We must initiate transport protocol handlers
|
||||
|
Reference in New Issue
Block a user