mirror of https://github.com/fluffle/goirc
Merge pull request #44 from StalkR/untaggedfield
client/mocknetconn_test: minor fix found by go vet
This commit is contained in:
commit
c0aa730514
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue