feat: try h3 connect DOH, failed will fall back h2; turn on with dns.prefer-h3: true

This commit is contained in:
Skyxim
2022-07-03 21:59:47 +08:00
parent 8eec86232c
commit 59ab2083aa
7 changed files with 82 additions and 16 deletions

View File

@ -79,6 +79,7 @@ type Controller struct {
// DNS config
type DNS struct {
Enable bool `yaml:"enable"`
PreferH3 bool `yaml:"prefer-h3"`
IPv6 bool `yaml:"ipv6"`
NameServer []dns.NameServer `yaml:"nameserver"`
Fallback []dns.NameServer `yaml:"fallback"`