diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-16 21:05:25 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-16 21:05:25 +0100 |
commit | 4e439ea10e327d4894a5d2db2611e1fd03f54188 (patch) | |
tree | 58ab27d539f7cb5a44cdbd6430a6515f8557037f /device | |
parent | 7a0fb5bbb1720fdd9404a4cf41920e24a46e0dad (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.go | 2 |
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) |