Skip to content

Commit

Permalink
optimize wiregaurd core
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jul 27, 2024
1 parent b0ffc46 commit b4f6f35
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion outbound/wireguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,36 @@ func (w *WireGuard) start() error {
wgDevice.FakePackets = w.fakePackets
wgDevice.FakePacketsSize = w.fakePacketsSize
wgDevice.FakePacketsDelays = w.fakePacketsDelay
wgDevice.FakePacketsMode = w.fakePacketsMode
mode := strings.ToLower(w.fakePacketsMode)
if mode == "" || mode == "m1" {
wgDevice.FakePacketsHeader = []byte{}

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 210 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)
wgDevice.FakePacketsNoModify = false

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 211 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)
} else if mode == "m2" {
wgDevice.FakePacketsHeader = []byte{}

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 213 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)
wgDevice.FakePacketsNoModify = true

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 214 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)
} else if mode == "m3" {
// clist := []byte{0xC0, 0xC2, 0xC3, 0xC4, 0xC9, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF}
wgDevice.FakePacketsHeader = []byte{0xDC, 0xDE, 0xD3, 0xD9, 0xD0, 0xEC, 0xEE, 0xE3}

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 217 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)
wgDevice.FakePacketsNoModify = false

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 218 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)
} else if mode == "m4" {
wgDevice.FakePacketsHeader = []byte{0xDC, 0xDE, 0xD3, 0xD9, 0xD0, 0xEC, 0xEE, 0xE3}

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 220 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)
wgDevice.FakePacketsNoModify = true

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 221 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)
} else if mode == "m5" {
wgDevice.FakePacketsHeader = []byte{0xC0, 0xC2, 0xC3, 0xC4, 0xC9, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF}

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)

Check failure on line 223 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsHeader undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsHeader)
wgDevice.FakePacketsNoModify = false

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / Debug build (Go 1.21)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64, freebsd, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-arm64, darwin, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-arm64, linux, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64, darwin, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv5, linux, arm, 5)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv6, linux, arm, 6)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64el, linux, mips64le)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mipsel-softfloat, linux, mipsle, softfloat)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-arm64, freebsd, arm64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-386, linux, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-armv7, linux, arm, 7)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-amd64-v3, freebsd, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-mips64, linux, mips64)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (darwin-amd64-v3, darwin, amd64, v3)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (linux-amd64, linux, amd64, v1)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)

Check failure on line 224 in outbound/wireguard.go

View workflow job for this annotation

GitHub Actions / cross (freebsd-386, freebsd, 386)

wgDevice.FakePacketsNoModify undefined (type *"github.com/sagernet/wireguard-go/device".Device has no field or method FakePacketsNoModify)
} else if mode == "m6" {
wgDevice.FakePacketsHeader = []byte{0x40, 0x42, 0x43, 0x44, 0x49, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F}
wgDevice.FakePacketsNoModify = true
} else if strings.HasPrefix(mode, "h") || strings.HasPrefix(mode, "g") {
clist, err := hex.DecodeString(strings.ReplaceAll(mode[1:], "_", ""))
if err != nil {
return err
}
wgDevice.FakePacketsHeader = clist
wgDevice.FakePacketsNoModify = strings.HasPrefix(mode, "h")
} else {
return fmt.Errorf("incorrect packet mode: %s", mode)
}

ipcConf := w.ipcConf
for _, peer := range w.peers {
Expand Down

0 comments on commit b4f6f35

Please sign in to comment.