File wireguard-go-newer_gvisor.patch of Package wireguard-go

From 23e1fb49a0d3cfcddc71c61982e9c77846762e91 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Wed, 17 Apr 2024 20:13:03 +0100
Subject: [PATCH] Fix compatibility with newer version of gvisor.

Method IsNil() was removed from stack.PacketBuffer.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 tun/netstack/tun.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go
index 93f41c2..2223afe 100644
--- a/tun/netstack/tun.go
+++ b/tun/netstack/tun.go
@@ -141,7 +141,7 @@ func (tun *netTun) Write(buf []byte, offset int) (int, error) {
 
 func (tun *netTun) WriteNotify() {
 	pkt := tun.ep.Read()
-	if pkt.IsNil() {
+	if pkt == nil {
 		return
 	}
 
-- 
2.44.0