route: Fix query_type never matching in rule_set headless rules
This commit is contained in:
@@ -45,6 +45,11 @@ func NewDefaultHeadlessRule(ctx context.Context, options option.DefaultHeadlessR
|
|||||||
invert: options.Invert,
|
invert: options.Invert,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
if len(options.QueryType) > 0 {
|
||||||
|
item := NewQueryTypeItem(options.QueryType)
|
||||||
|
rule.items = append(rule.items, item)
|
||||||
|
rule.allItems = append(rule.allItems, item)
|
||||||
|
}
|
||||||
if len(options.Network) > 0 {
|
if len(options.Network) > 0 {
|
||||||
item := NewNetworkItem(options.Network)
|
item := NewNetworkItem(options.Network)
|
||||||
rule.items = append(rule.items, item)
|
rule.items = append(rule.items, item)
|
||||||
|
|||||||
Reference in New Issue
Block a user