npc: Add a dummy isNil method to ruleHost interface
This commit is contained in:
1 parent
a5e0b3452d
commit
b84fbf86ec
3 files changed
+12
-2
No files matched your search
@@ -56,6 +56,10 @@ func (spec *selectorSpec) getRuleSpec(src bool) ([]string, string) {
|
||||
return rule, comment
|
||||
}
|
||||
|
||||
func (spec *selectorSpec) isNil() bool {
|
||||
return spec == nil
|
||||
}
|
||||
|
||||
type selector struct {
|
||||
ips ipset.Interface
|
||||
spec *selectorSpec
|
||||
|
||||
Reference in new issue
Block a user