diff --git a/proxy_protocol.go b/proxy_protocol.go index ce87db6..0a3f541 100644 --- a/proxy_protocol.go +++ b/proxy_protocol.go @@ -69,7 +69,5 @@ func (c *protoConn) RemoteAddr() net.Addr { if c.proxy == nil { return c.Conn.RemoteAddr() } - return &net.TCPAddr{ - IP: c.proxy.SourceAddress, - Port: int(c.proxy.SourcePort)} + return c.proxy.SourceAddr }