Pull request: 5035-more-clients-netip-addr
Updates #5035. Squashed commit of the following: commit 1934ea14299921760e9fcf6dd9053bd3155cb40e Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Nov 9 14:19:54 2022 +0300 all: move more client code to netip.Addr
This commit is contained in:
@@ -188,7 +188,7 @@ func TestBroadcastFromIPNet(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCheckPort(t *testing.T) {
|
||||
laddr := netip.AddrPortFrom(IPv4Localhost(), 0)
|
||||
laddr := netip.AddrPortFrom(netutil.IPv4Localhost(), 0)
|
||||
|
||||
t.Run("tcp_bound", func(t *testing.T) {
|
||||
l, err := net.Listen("tcp", laddr.String())
|
||||
|
||||
Reference in New Issue
Block a user