mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-08-02 01:42:54 +02:00
tun/netstack: remove usage of pkt.IsNil()
Since 3c75945fd ("netstack: remove PacketBuffer.IsNil()") this has been invalid. Follow the replacement pattern of that commit. The old definition inlined to the same code anyway: func (pk *PacketBuffer) IsNil() bool { return pk == nil } Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
b8ad629233
commit
6a0fd68c48
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ func (tun *netTun) Write(buf [][]byte, offset int) (int, error) {
|
||||||
|
|
||||||
func (tun *netTun) WriteNotify() {
|
func (tun *netTun) WriteNotify() {
|
||||||
pkt := tun.ep.Read()
|
pkt := tun.ep.Read()
|
||||||
if pkt.IsNil() {
|
if pkt == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue