mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
ui: format node addr correctly
When scheduling a temporary rule to disable it, use the correct node address.
This commit is contained in:
parent
85173c3553
commit
70e868ad8c
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject):
|
|||
if rule.duration == Config.DURATION_ONCE:
|
||||
timeout = 1
|
||||
if timeout > 0:
|
||||
ost = OneshotTimer(timeout, _disable_temp_rule, (kwargs['peer'], rule,))
|
||||
ost = OneshotTimer(timeout, _disable_temp_rule, ("{0}:{1}".format(proto, addr), rule,))
|
||||
ost.start()
|
||||
|
||||
elif kwargs['action'] == self.DELETE_RULE:
|
||||
|
|
Loading…
Add table
Reference in a new issue