mirror of
https://github.com/vxcontrol/go-proxyproto.git
synced 2026-07-20 22:42:28 -04:00
missing close()
This commit is contained in:
@@ -349,6 +349,7 @@ func (p *Conn) checkPrefix() error {
|
||||
dstIP = data[18:34]
|
||||
dstPort = binary.BigEndian.Uint16(data[34:36])
|
||||
} else if transportProtocolAndAddressFamily&addressFamilyUnix == addressFamilyUnix {
|
||||
p.conn.Close()
|
||||
return fmt.Errorf("unix protocol not supported")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user