aboutsummaryrefslogtreecommitdiffstats
path: root/device/receive.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-01-20 20:04:31 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-20 20:12:32 +0100
commit294d3bedf959c9c496aaa877919a762acf07c684 (patch)
tree7a8b17097052e46d558511e85c0d392bfa571f01 /device/receive.go
parentdevice: remove unused fields from DummyDatagram and DummyBind (diff)
downloadwireguard-go-294d3bedf959c9c496aaa877919a762acf07c684.tar.xz
wireguard-go-294d3bedf959c9c496aaa877919a762acf07c684.zip
device: allow compiling with Go 1.15
Until we depend on Go 1.16 (which isn't released yet), alias our own variable to the private member of the net package. This will allow an easy find replace to make this go away when we eventually switch to 1.16. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/receive.go')
-rw-r--r--device/receive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go
index 701e308..605303e 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -112,7 +112,7 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind conn.Bind) {
if err != nil {
device.PutMessageBuffer(buffer)
- if errors.Is(err, net.ErrClosed) {
+ if errors.Is(err, conn.NetErrClosed) {
return
}
device.log.Error.Printf("Failed to receive packet: %v", err)