mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-12 00:19:47 +02:00
[management] copy port info (#3283)
This commit is contained in:
@ -261,6 +261,7 @@ func toProtocolFirewallRules(rules []*types.FirewallRule) []*proto.FirewallRule
|
|||||||
Action: getProtoAction(rule.Action),
|
Action: getProtoAction(rule.Action),
|
||||||
Protocol: getProtoProtocol(rule.Protocol),
|
Protocol: getProtoProtocol(rule.Protocol),
|
||||||
Port: rule.Port,
|
Port: rule.Port,
|
||||||
|
PortInfo: rule.PortRange.ToProto(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
|
Reference in New Issue
Block a user