From f38daa325b82ba26b3626feea4e71995fc83404c Mon Sep 17 00:00:00 2001 From: Oleksandr Garmatin Date: Wed, 4 Dec 2019 04:14:00 +0200 Subject: [PATCH] Fix log output --- .../pan/alexander/tordnscrypt/modules/ModulesStateLoop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tordnscrypt/src/main/java/pan/alexander/tordnscrypt/modules/ModulesStateLoop.java b/tordnscrypt/src/main/java/pan/alexander/tordnscrypt/modules/ModulesStateLoop.java index e6165710e..05fcb2558 100644 --- a/tordnscrypt/src/main/java/pan/alexander/tordnscrypt/modules/ModulesStateLoop.java +++ b/tordnscrypt/src/main/java/pan/alexander/tordnscrypt/modules/ModulesStateLoop.java @@ -166,7 +166,7 @@ private void updateIptablesRules(ModuleState dnsCryptState, ModuleState torState if (modulesStatus.isIptablesRulesUpdateRequested()) { modulesStatus.setIptablesRulesUpdateRequested(false); - if (rootIsAvailable) { + if (!rootIsAvailable) { Log.w(LOG_TAG, "Iptables rules isn't updated, no root!"); } }