From cf0154d5fdd90a306aeea7286afd8a02efcc7232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Fri, 24 Jan 2025 17:37:59 +0100 Subject: [PATCH] Fix rule id --- client/firewall/manager/forward_rule.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/firewall/manager/forward_rule.go b/client/firewall/manager/forward_rule.go index aba277c12..a5c02ca21 100644 --- a/client/firewall/manager/forward_rule.go +++ b/client/firewall/manager/forward_rule.go @@ -14,11 +14,11 @@ type ForwardRule struct { } func (r ForwardRule) GetRuleID() string { - return fmt.Sprintf("%s-%s-%s-%s", + return fmt.Sprintf("%s;%s;%s;%s", r.Protocol, - r.DestinationPort, + r.DestinationPort.String(), r.TranslatedAddress.String(), - r.TranslatedPort) + r.TranslatedPort.String()) } func (r ForwardRule) String() string {