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