2023-09-16 13:37:22 +00:00
|
|
|
package constant
|
|
|
|
|
2024-12-02 15:17:01 +00:00
|
|
|
const (
|
|
|
|
DefaultDNSTTL = 600
|
|
|
|
)
|
|
|
|
|
|
|
|
type DomainStrategy = uint8
|
|
|
|
|
|
|
|
const (
|
|
|
|
DomainStrategyAsIS DomainStrategy = iota
|
|
|
|
DomainStrategyPreferIPv4
|
|
|
|
DomainStrategyPreferIPv6
|
|
|
|
DomainStrategyIPv4Only
|
|
|
|
DomainStrategyIPv6Only
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
DNSTypeLegacy = "legacy"
|
|
|
|
DNSTypeUDP = "udp"
|
|
|
|
DNSTypeTCP = "tcp"
|
|
|
|
DNSTypeTLS = "tls"
|
|
|
|
DNSTypeHTTPS = "https"
|
|
|
|
DNSTypeQUIC = "quic"
|
|
|
|
DNSTypeHTTP3 = "h3"
|
|
|
|
DNSTypeLocal = "local"
|
|
|
|
DNSTypePreDefined = "predefined"
|
|
|
|
DNSTypeFakeIP = "fakeip"
|
|
|
|
DNSTypeDHCP = "dhcp"
|
|
|
|
)
|
|
|
|
|
2023-09-16 13:37:22 +00:00
|
|
|
const (
|
|
|
|
DNSProviderAliDNS = "alidns"
|
|
|
|
DNSProviderCloudflare = "cloudflare"
|
|
|
|
)
|