20 lines
304 B
Go
Raw Normal View History

package httpupgrade
import "net"
2024-07-12 00:20:06 +02:00
type connection struct {
net.Conn
remoteAddr net.Addr
}
2024-07-12 00:20:06 +02:00
func newConnection(conn net.Conn, remoteAddr net.Addr) *connection {
return &connection{
Conn: conn,
remoteAddr: remoteAddr,
}
}
2024-07-12 00:20:06 +02:00
func (c *connection) RemoteAddr() net.Addr {
return c.remoteAddr
}