ClashMetaForAndroid
ClashMetaForAndroid copied to clipboard
fix: (native conn.go) `closeMatch` logic should really close all matching conns; closes PacketConn also
In closeMatch, the callback function returns false when the logic not getting into matching branch. This is not correct; as per xsync.MapOf, if the callback function f returns false, Range function stops the iteration. f should always return true.
Also considering at present the massive adoption of reliable byte-stream protocol based on UDP (QUIC by browsers, for example), PacketConns should also be closed, if possible.