Update gVisor to 20220905.0

This commit is contained in:
世界 2022-09-09 11:31:08 +08:00
parent 2f15b0cd3f
commit 575ac29417
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
7 changed files with 39 additions and 36 deletions

View file

@ -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[:]