mirror of https://github.com/fluffle/goirc
This commit is contained in:
parent
1a9907bfe4
commit
06a1da17cf
|
@ -136,11 +136,11 @@ func (m *mockNetConn) Close() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in New Issue