Merge pull request #44 from StalkR/untaggedfield

client/mocknetconn_test: minor fix found by go vet
This commit is contained in:
Alex Bee 2014-07-06 21:38:23 +01:00
commit c0aa730514
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 {
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 {