mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-15 00:50:25 +02:00
all: add DNS Stamps support
See: https://dnscrypt.info/stamps-specifications
This commit is contained in:
committed by
Cuong Manh Le
parent
08fe04f1ee
commit
282a8ce78e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user