chen08209:Android 应用排除无法阻止主动绑定 VPN socket

chen08209 说明,Android 按应用排除会改变默认网络,但被排除的应用仍可主动绑定 VPN socket。根据 socket 所有者再拦截会增加开销,也可能切断无法识别归属的正常流量,FlClash 不计划这样处理;若必须让某应用完全接触不到 VPN,作者建议不要在 VPN 运行时使用它。

作者原文

Thanks for the detailed report. This comes from how Android's per-app VPN exclusion works rather than from FlClash: excluding an app only changes its default network, and Android still lets the app bind a socket to the VPN interface directly. Other Android clients built on VpnService behave the same way. Refusing that traffic would mean looking up the owner of every connection, which adds a cost to each one and can cut off legitimate traffic on devices where the lookup fails, so we don't plan to add it. If an app must not learn about the VPN, the reliable option is not to run it while the VPN is on. Closing as not planned.