From e19287f60f5b44f5f27f9e07b8aa4283b2f6b4e1 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Mon, 6 Apr 2020 14:44:10 -0700 Subject: [PATCH] wgengine/magicsock: fix Conn docs type reference The docs on magicsock.Conn stated that they implemented the wireguard/device.Bind interface, yet this type does not exist. In reality, the Conn type implements the wireguard/conn.Bind interface. I also fixed a small typo in the same file. Signed-off-by: Blake Gentry --- wgengine/magicsock/magicsock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index a98d69d2f..92bb3c5f6 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -46,7 +46,7 @@ import ( ) // A Conn routes UDP packets and actively manages a list of its endpoints. -// It implements wireguard/device.Bind. +// It implements wireguard/conn.Bind. type Conn struct { pconnPort uint16 // the preferred port from opts.Port; 0 means auto pconn4 *RebindingUDPConn @@ -1514,7 +1514,7 @@ type AddrSet struct { // stopSpray is the time after which we stop spraying packets. stopSpray time.Time - // lastSpray is the lsat time we sprayed a packet. + // lastSpray is the last time we sprayed a packet. lastSpray time.Time }