diff --git a/client/mocknetconn_test.go b/client/mocknetconn_test.go index b438a6c..e736c88 100644 --- a/client/mocknetconn_test.go +++ b/client/mocknetconn_test.go @@ -130,11 +130,11 @@ func (m *mockNetConn) Closed() bool { } 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 {