diff --git a/client/mocknetconn_test.go b/client/mocknetconn_test.go index 76835f9..992a41c 100644 --- a/client/mocknetconn_test.go +++ b/client/mocknetconn_test.go @@ -136,11 +136,11 @@ func (m *mockNetConn) Close() error { } func (m *mockNetConn) LocalAddr() net.Addr { - return &net.IPAddr{net.IPv4(127, 0, 0, 1)} + return &net.IPAddr{IP: net.IPv4(127, 0, 0, 1)} } func (m *mockNetConn) RemoteAddr() net.Addr { - return &net.IPAddr{net.IPv4(127, 0, 0, 1)} + return &net.IPAddr{IP: net.IPv4(127, 0, 0, 1)} } func (m *mockNetConn) SetDeadline(t time.Time) error {