all: support custom config from Control-D resolver

This commit is contained in:
Cuong Manh Le
2023-04-26 18:55:53 +07:00
committed by Cuong Manh Le
parent 9df381d3d1
commit 69319c6b41
2 changed files with 40 additions and 29 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ const (
// ResolverConfig represents Control D resolver data.
type ResolverConfig struct {
DOH string `json:"doh"`
DOH string `json:"doh"`
Ctrld struct {
CustomConfig string `json:"custom_config"`
} `json:"ctrld"`
Exclude []string `json:"exclude"`
}