18 lines
515 B
Go
18 lines
515 B
Go
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
|
//go:build plus
|
|
|
|
package dnsconfigs
|
|
|
|
// NSRecursionConfig 递归DNS设置
|
|
type NSRecursionConfig struct {
|
|
IsOn bool `json:"isOn"`
|
|
Hosts []*DNSResolver `json:"hosts"`
|
|
UseLocalHosts bool `json:"useLocalHosts"` // 自动从本机读取DNS
|
|
AllowDomains []string `json:"allowDomains"`
|
|
DenyDomains []string `json:"denyDomains"`
|
|
}
|
|
|
|
func (this *NSRecursionConfig) Init() error {
|
|
return nil
|
|
}
|