wgengine/magicsock: fix two comments

Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Josh Bleecher Snyder 2021-04-19 16:18:56 -07:00
parent b1e624ef04
commit a2a2c0ce1c

View File

@ -2767,7 +2767,7 @@ type RebindingUDPConn struct {
pconn net.PacketConn 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) { func (c *RebindingUDPConn) currentConn() (pconn net.PacketConn) {
c.mu.Lock() c.mu.Lock()
defer c.mu.Unlock() 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. // It returns the number of bytes copied and the source address.
func (c *RebindingUDPConn) ReadFrom(b []byte) (int, net.Addr, error) { func (c *RebindingUDPConn) ReadFrom(b []byte) (int, net.Addr, error) {
for { for {