Add conn.{Local,Remote}Addr

This commit is contained in:
Simon Ser 2020-08-11 10:35:05 +02:00
parent 20c26d113c
commit 6faa081a7c
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -199,3 +199,11 @@ func (c *conn) SendMessage(msg *irc.Message) {
} }
c.outgoing <- msg c.outgoing <- msg
} }
func (c *conn) RemoteAddr() net.Addr {
return c.conn.RemoteAddr()
}
func (c *conn) LocalAddr() net.Addr {
return c.conn.LocalAddr()
}