client/mocknetconn_test: minor fix found by go vet

net.IPAddr composite literal uses unkeyed fields
This commit is contained in:
StalkR 2014-06-19 15:19:37 +02:00
parent 7711182a72
commit ec98b98fa6
1 changed files with 2 additions and 2 deletions

View File

@ -130,11 +130,11 @@ func (m *mockNetConn) Closed() bool {
} }
func (m *mockNetConn) LocalAddr() net.Addr { 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 { 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 { func (m *mockNetConn) SetDeadline(t time.Time) error {