From 626e6590d6e7e56549a196b4bf2c220ef72bdbdb Mon Sep 17 00:00:00 2001 From: dingjun Date: Wed, 4 Aug 2021 16:15:54 +0800 Subject: [PATCH] fix for struct change --- proxy_protocol.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }