From a2a2c0ce1c7708fd34a69016d5f7af1971046bbc Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 19 Apr 2021 16:18:56 -0700 Subject: [PATCH] wgengine/magicsock: fix two comments Signed-off-by: Josh Bleecher Snyder --- 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 5864bb897..703d6847e 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -2767,7 +2767,7 @@ type RebindingUDPConn struct { pconn net.PacketConn } -// currentConn returns c's current pconn and whether it is (fake) closed. +// currentConn returns c's current pconn. func (c *RebindingUDPConn) currentConn() (pconn net.PacketConn) { c.mu.Lock() defer c.mu.Unlock() @@ -2785,7 +2785,7 @@ func (c *RebindingUDPConn) Reset(pconn net.PacketConn) { } } -// ReadFromNetaddr reads a packet from c into b. +// ReadFrom reads a packet from c into b. // It returns the number of bytes copied and the source address. func (c *RebindingUDPConn) ReadFrom(b []byte) (int, net.Addr, error) { for {