ui: format node addr correctly

When scheduling a temporary rule to disable it, use the correct node
address.
This commit is contained in:
Gustavo Iñiguez Goia 2025-01-31 09:36:13 +01:00
parent 85173c3553
commit 70e868ad8c
Failed to generate hash of commit

View file

@ -752,7 +752,7 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject):
if rule.duration == Config.DURATION_ONCE: if rule.duration == Config.DURATION_ONCE:
timeout = 1 timeout = 1
if timeout > 0: 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() ost.start()
elif kwargs['action'] == self.DELETE_RULE: elif kwargs['action'] == self.DELETE_RULE: