summaryrefslogtreecommitdiffhomepage
path: root/device
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-16 21:05:25 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-16 21:05:25 +0100
commit4e439ea10e327d4894a5d2db2611e1fd03f54188 (patch)
tree58ab27d539f7cb5a44cdbd6430a6515f8557037f /device
parent7a0fb5bbb1720fdd9404a4cf41920e24a46e0dad (diff)
conn: bump to 1.16 and get rid of NetErrClosed hack
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device')
-rw-r--r--device/receive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go
index 6b9cccd..b1959c6 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -101,7 +101,7 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind conn.Bind) {
if err != nil {
device.PutMessageBuffer(buffer)
- if errors.Is(err, conn.NetErrClosed) {
+ if errors.Is(err, net.ErrClosed) {
return
}
device.log.Errorf("Failed to receive packet: %v", err)