From 70e868ad8cf18f69acfb083efb804d54dab122e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Fri, 31 Jan 2025 09:36:13 +0100 Subject: [PATCH] ui: format node addr correctly When scheduling a temporary rule to disable it, use the correct node address. --- ui/opensnitch/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/opensnitch/service.py b/ui/opensnitch/service.py index 8d9890ae..6ba4dca2 100644 --- a/ui/opensnitch/service.py +++ b/ui/opensnitch/service.py @@ -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: