rule: carry over all table attributes (including family)
fixes https://github.com/google/nftables/issues/150
This commit is contained in:
parent
5a9391c12f
commit
19672dc9fe
3
rule.go
3
rule.go
|
@ -89,6 +89,9 @@ func (cc *Conn) GetRule(t *Table, c *Chain) ([]*Rule, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Carry over all Table attributes (including Family), as the Table
|
||||
// object which ruleFromMsg creates only contains the name.
|
||||
r.Table = t
|
||||
rules = append(rules, r)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue