1
0
mirror of https://github.com/fatedier/frp.git synced 2025-05-09 07:58:26 +00:00

pkg/util/net: fix quic streams leak ()

This commit is contained in:
fatedier 2023-01-10 10:19:37 +08:00 committed by GitHub
parent b03f0ad1e6
commit 5cfbb976f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -211,3 +211,8 @@ func (conn *wrapQuicStream) RemoteAddr() net.Addr {
}
return (*net.TCPAddr)(nil)
}
func (conn *wrapQuicStream) Close() error {
conn.Stream.CancelRead(0)
return conn.Stream.Close()
}