wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration
So we're staying within the netip.Addr/AddrPort consistently and avoiding allocs/conversions to the legacy net addr types. Updates #5162 Change-Id: I59feba60d3de39f773e68292d759766bac98c917 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
29f7df9d8f
commit
10f1c90f4d
@@ -1801,7 +1801,7 @@ func TestBlockForeverConnUnblocks(t *testing.T) {
|
||||
done := make(chan error, 1)
|
||||
go func() {
|
||||
defer close(done)
|
||||
_, _, err := c.ReadFrom(make([]byte, 1))
|
||||
_, _, err := c.ReadFromUDPAddrPort(make([]byte, 1))
|
||||
done <- err
|
||||
}()
|
||||
time.Sleep(50 * time.Millisecond) // give ReadFrom time to get blocked
|
||||
|
||||
Reference in New Issue
Block a user