all: add DNS Stamps support

See: https://dnscrypt.info/stamps-specifications
This commit is contained in:
Cuong Manh Le
2024-09-17 20:42:27 +07:00
committed by Cuong Manh Le
parent 08fe04f1ee
commit 282a8ce78e
7 changed files with 170 additions and 2 deletions
+4
View File
@@ -308,7 +308,11 @@ func (p *prog) setupUpstream(cfg *ctrld.Config) {
isControlDUpstream := false
for n := range cfg.Upstream {
uc := cfg.Upstream[n]
sdns := uc.Type == ctrld.ResolverTypeSDNS
uc.Init()
if sdns {
mainLog.Load().Debug().Msgf("initialized DNS Stamps with endpoint: %s, type: %s", uc.Endpoint, uc.Type)
}
isControlDUpstream = isControlDUpstream || uc.IsControlD()
if uc.BootstrapIP == "" {
uc.SetupBootstrapIP()