Add workaround for resolver/compat integration

This commit is contained in:
Daniel
2021-11-29 16:13:08 +01:00
parent 3bcb6f377c
commit dc31400caa
6 changed files with 32 additions and 15 deletions

12
resolver/compat.go Normal file
View File

@@ -0,0 +1,12 @@
package resolver
import "net"
// This is a workaround for enabling the resolver to work with the compat
// module without importing it. Long-term, the network module should not import
// the resolver package, as this breaks the SPN hub.
var (
CompatDNSCheckInternalDomainScope string
CompatSelfCheckIsFailing func() bool
CompatSubmitDNSCheckDomain func(subdomain string) (respondWith net.IP)
)