mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
ui, sys fw: reformat how expressions are painted
instead of "== tcp dport 8888" display "tcp dport == 8888"
This commit is contained in:
parent
1ff61a913c
commit
8954145735
1 changed files with 2 additions and 3 deletions
|
@ -274,10 +274,9 @@ class Rules(QObject):
|
|||
cols.append(rule.Description)
|
||||
exprs = ""
|
||||
for e in rule.Expressions:
|
||||
exprs += "{0} {1} {2}".format(
|
||||
e.Statement.Op,
|
||||
exprs += "{0} {1}".format(
|
||||
e.Statement.Name,
|
||||
"".join(["{0} {1} ".format(h.Key, h.Value) for h in e.Statement.Values ])
|
||||
"".join(["{0} {1} {2} ".format(h.Key, e.Statement.Op, h.Value) for h in e.Statement.Values ])
|
||||
)
|
||||
cols.append(exprs)
|
||||
cols.append(rule.Target)
|
||||
|
|
Loading…
Add table
Reference in a new issue