Allow all when no connection

This commit is contained in:
M66B 2016-02-12 21:18:42 +01:00
parent 2ba3f8e0d8
commit c456948827
1 changed files with 2 additions and 0 deletions

View File

@ -1137,6 +1137,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
if ((!blocked || (screen && last_interactive)) && (!metered || !(rule.roaming && roaming))) if ((!blocked || (screen && last_interactive)) && (!metered || !(rule.roaming && roaming)))
listAllowed.add(rule); listAllowed.add(rule);
} }
else
listAllowed.addAll(listRule);
Log.i(TAG, "Allowed " + listAllowed.size() + " of " + listRule.size()); Log.i(TAG, "Allowed " + listAllowed.size() + " of " + listRule.size());