Leadaxe:LxBox 规则编辑器加入网络类型与计费网络条件

在 LxBox issue #178 的关闭评论中,Leadaxe 说明下个版本的规则编辑器会在 Wi-Fi 区域加入 NETWORK 条件:Any、Wi-Fi、Cellular、Ethernet 对应 core 的 network_type,另有 Metered networks only 对应 network_is_expensive;SSID 匹配仍单独需要位置权限。条件会与其他规则 AND 组合,在连接建立时评估;切换 Wi-Fi/移动数据会重置连接,单纯切换 metered 标记时既有连接保持原决定。

作者原文

Added in the next release. The rule editor's Wi-Fi section is now NETWORK:

  • Any / Wi-Fi / Cellular / Ethernet — the core's network_type. No location permission is needed; that is only required for SSID matching, and the SSID list now appears only under Wi-Fi.
  • Metered networks only — network_is_expensive: mobile data, plus Wi-Fi marked as metered in Android settings.

Both are AND-ed with the rest of the rule. For the original case: rule with your apps or domains, network Cellular (or Metered networks only), target Reject or a direction.

Rules are evaluated when a connection opens. Switching between Wi-Fi and mobile data resets connections, so new ones follow the new network. If Android only flips the metered flag without reconnecting, already open connections keep their earlier decision.