mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
Fix rule id
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user