mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
ui,prefs: fixed QueueBypass option.
This commit is contained in:
parent
e25d741f76
commit
5fdb60dccb
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@
|
||||||
"FwOptions": {
|
"FwOptions": {
|
||||||
"ConfigPath": "/etc/opensnitchd/system-fw.json",
|
"ConfigPath": "/etc/opensnitchd/system-fw.json",
|
||||||
"MonitorInterval": "15s",
|
"MonitorInterval": "15s",
|
||||||
"BypassQueue": true
|
"QueueBypass": true
|
||||||
},
|
},
|
||||||
"Rules": {
|
"Rules": {
|
||||||
"Path": "/etc/opensnitchd/rules/",
|
"Path": "/etc/opensnitchd/rules/",
|
||||||
|
|
|
@ -482,7 +482,7 @@ class PreferencesDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
||||||
|
|
||||||
monInterval = fwOptions['MonitorInterval'][:-1]
|
monInterval = fwOptions['MonitorInterval'][:-1]
|
||||||
self.lineNodeFwMonInterval.setText(monInterval)
|
self.lineNodeFwMonInterval.setText(monInterval)
|
||||||
self.checkNodeBypassQueue.setChecked(fwOptions.get('QueueBypass'))
|
self.checkNodeBypassQueue.setChecked(not fwOptions.get('QueueBypass'))
|
||||||
|
|
||||||
stats = node_config.get('Stats')
|
stats = node_config.get('Stats')
|
||||||
if stats == None:
|
if stats == None:
|
||||||
|
@ -576,7 +576,7 @@ class PreferencesDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
||||||
fwOptions['QueueBypass'] = True
|
fwOptions['QueueBypass'] = True
|
||||||
node_config['FwOptions'] = fwOptions
|
node_config['FwOptions'] = fwOptions
|
||||||
|
|
||||||
fwOptions['QueueBypass'] = self.checkNodeBypassQueue.isChecked()
|
fwOptions['QueueBypass'] = not self.checkNodeBypassQueue.isChecked()
|
||||||
fwOptions['MonitorInterval'] = self.lineNodeFwMonInterval.text() + "s"
|
fwOptions['MonitorInterval'] = self.lineNodeFwMonInterval.text() + "s"
|
||||||
|
|
||||||
stats = node_config.get('Stats')
|
stats = node_config.get('Stats')
|
||||||
|
|
Loading…
Add table
Reference in a new issue