mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-13 14:18:47 +01:00
Client-side forward handling Co-authored-by: Viktor Liu <17948409+lixmal@users.noreply.github.com> --------- Co-authored-by: Viktor Liu <17948409+lixmal@users.noreply.github.com>
18 lines
280 B
Go
18 lines
280 B
Go
package iptables
|
|
|
|
// Rule to handle management of rules
|
|
type Rule struct {
|
|
ruleID string
|
|
ipsetName string
|
|
|
|
specs []string
|
|
mangleSpecs []string
|
|
ip string
|
|
chain string
|
|
}
|
|
|
|
// GetRuleID returns the rule id
|
|
func (r *Rule) ID() string {
|
|
return r.ruleID
|
|
}
|