mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-15 21:00:27 +00:00
22 lines
393 B
Go
22 lines
393 B
Go
package rule
|
|
|
|
import (
|
|
"github.com/sagernet/sing-box/adapter"
|
|
)
|
|
|
|
var _ RuleItem = (*QueryDNSSECItem)(nil)
|
|
|
|
type QueryDNSSECItem struct{}
|
|
|
|
func NewQueryDNSSECItem() *QueryDNSSECItem {
|
|
return &QueryDNSSECItem{}
|
|
}
|
|
|
|
func (r *QueryDNSSECItem) Match(metadata *adapter.InboundContext) bool {
|
|
return metadata.QueryDNSSEC
|
|
}
|
|
|
|
func (r *QueryDNSSECItem) String() string {
|
|
return "query_dnssec=true"
|
|
}
|