diff --git a/ui/opensnitch/service.py b/ui/opensnitch/service.py index 48687ad845..abca096d53 100644 --- a/ui/opensnitch/service.py +++ b/ui/opensnitch/service.py @@ -655,10 +655,12 @@ def _overwrite_nodes_config(self, node_config): _default_action = self._cfg.getInt(self._cfg.DEFAULT_ACTION_KEY) try: temp_cfg = json.loads(newconf.config) - if _default_action == Config.ACTION_DENY_IDX: - temp_cfg['DefaultAction'] = Config.ACTION_DENY - else: + if _default_action == Config.ACTION_ALLOW_IDX: temp_cfg['DefaultAction'] = Config.ACTION_ALLOW + else: + temp_cfg['DefaultAction'] = Config.ACTION_DENY + + print("Setting daemon DefaultAction to:", temp_cfg['DefaultAction']) newconf.config = json.dumps(temp_cfg) except Exception as e: