Update gVisor to 20220905.0
This commit is contained in:
parent
2f15b0cd3f
commit
575ac29417
7 changed files with 39 additions and 36 deletions
|
|
@ -14,7 +14,6 @@ import (
|
|||
E "github.com/sagernet/sing/common/exceptions"
|
||||
N "github.com/sagernet/sing/common/network"
|
||||
|
||||
"golang.org/x/net/ipv4"
|
||||
"golang.org/x/net/route"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
|
@ -83,7 +82,7 @@ var (
|
|||
|
||||
func (t *NativeTun) Write(p []byte) (n int, err error) {
|
||||
var packetHeader []byte
|
||||
if p[0]>>4 == ipv4.Version {
|
||||
if p[0]>>4 == 4 {
|
||||
packetHeader = packetHeader4[:]
|
||||
} else {
|
||||
packetHeader = packetHeader6[:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue