ui,prefs: fixed QueueBypass option.

This commit is contained in:
Gustavo Iñiguez Goia 2025-02-18 23:40:56 +01:00
parent e25d741f76
commit 5fdb60dccb
Failed to generate hash of commit
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@
"FwOptions": {
"ConfigPath": "/etc/opensnitchd/system-fw.json",
"MonitorInterval": "15s",
"BypassQueue": true
"QueueBypass": true
},
"Rules": {
"Path": "/etc/opensnitchd/rules/",

View file

@ -482,7 +482,7 @@ class PreferencesDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
monInterval = fwOptions['MonitorInterval'][:-1]
self.lineNodeFwMonInterval.setText(monInterval)
self.checkNodeBypassQueue.setChecked(fwOptions.get('QueueBypass'))
self.checkNodeBypassQueue.setChecked(not fwOptions.get('QueueBypass'))
stats = node_config.get('Stats')
if stats == None:
@ -576,7 +576,7 @@ class PreferencesDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
fwOptions['QueueBypass'] = True
node_config['FwOptions'] = fwOptions
fwOptions['QueueBypass'] = self.checkNodeBypassQueue.isChecked()
fwOptions['QueueBypass'] = not self.checkNodeBypassQueue.isChecked()
fwOptions['MonitorInterval'] = self.lineNodeFwMonInterval.text() + "s"
stats = node_config.get('Stats')