Fix rule id

This commit is contained in:
Zoltán Papp
2025-01-24 17:37:59 +01:00
parent 20bce65ab2
commit cf0154d5fd

View File

@@ -14,11 +14,11 @@ type ForwardRule struct {
} }
func (r ForwardRule) GetRuleID() string { func (r ForwardRule) GetRuleID() string {
return fmt.Sprintf("%s-%s-%s-%s", return fmt.Sprintf("%s;%s;%s;%s",
r.Protocol, r.Protocol,
r.DestinationPort, r.DestinationPort.String(),
r.TranslatedAddress.String(), r.TranslatedAddress.String(),
r.TranslatedPort) r.TranslatedPort.String())
} }
func (r ForwardRule) String() string { func (r ForwardRule) String() string {