REMOVE fasthttp version

This commit is contained in:
6543 2022-08-28 20:54:17 +02:00
parent ea13ac0e92
commit 16a8d5d575
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
26 changed files with 331 additions and 1339 deletions

View file

@ -3,10 +3,14 @@ package dns
import (
"net"
"strings"
"time"
"codeberg.org/codeberg/pages/server/cache"
)
// lookupCacheTimeout specifies the timeout for the DNS lookup cache.
var lookupCacheTimeout = 15 * time.Minute
// GetTargetFromDNS searches for CNAME or TXT entries on the request domain ending with MainDomainSuffix.
// If everything is fine, it returns the target data.
func GetTargetFromDNS(domain, mainDomainSuffix string, dnsLookupCache cache.SetGetKey) (targetOwner, targetRepo, targetBranch string) {