Skip to content

Commit

Permalink
Don't load malware/firewall lists when reading from file
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Jan 5, 2025
1 parent b9c18f0 commit e5259ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ else if(mSettings.dump_mode == Prefs.DumpMode.PCAP_FILE) {
} else
mAppFilterUids = new int[0];

mMalwareDetectionEnabled = Prefs.isMalwareDetectionEnabled(this, mPrefs);
mFirewallEnabled = Prefs.isFirewallEnabled(this, mPrefs);
mMalwareDetectionEnabled = !mSettings.readFromPcap() && Prefs.isMalwareDetectionEnabled(this, mPrefs);
mFirewallEnabled = !mSettings.readFromPcap() && Prefs.isFirewallEnabled(this, mPrefs);

if(!mSettings.root_capture && !mSettings.readFromPcap()) {
Log.i(TAG, "Using DNS server " + dns_server);
Expand Down

0 comments on commit e5259ad

Please sign in to comment.