mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-27 09:09:07 +02:00
use portrange
This commit is contained in:
@@ -1965,6 +1965,12 @@ func (a *Account) InjectProxyPolicies() {
|
|||||||
Bidirectional: false,
|
Bidirectional: false,
|
||||||
Protocol: PolicyRuleProtocolTCP,
|
Protocol: PolicyRuleProtocolTCP,
|
||||||
Action: PolicyTrafficActionAccept,
|
Action: PolicyTrafficActionAccept,
|
||||||
|
PortRanges: []RulePortRange{
|
||||||
|
{
|
||||||
|
Start: uint16(target.Port),
|
||||||
|
End: uint16(target.Port),
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user