diff --git a/server/certificates/certificates.go b/server/certificates/certificates.go index b5ea1fd..0ac5152 100644 --- a/server/certificates/certificates.go +++ b/server/certificates/certificates.go @@ -6,11 +6,12 @@ import ( "crypto/x509" "errors" "fmt" - "github.com/hashicorp/golang-lru/v2" "strconv" "strings" "time" + "github.com/hashicorp/golang-lru/v2" + "github.com/go-acme/lego/v4/certcrypto" "github.com/go-acme/lego/v4/certificate" "github.com/go-acme/lego/v4/challenge/tlsalpn01" @@ -34,7 +35,7 @@ func TLSConfig(mainDomainSuffix string, giteaClient *gitea.Client, acmeClient *AcmeClient, firstDefaultBranch string, - challengeCache cache.ICache, canonicalDomainCache cache.ICache, + challengeCache, canonicalDomainCache cache.ICache, certDB database.CertDB, noDNS01 bool, rawDomain string, diff --git a/server/dns/dns.go b/server/dns/dns.go index 09d5e35..60b2147 100644 --- a/server/dns/dns.go +++ b/server/dns/dns.go @@ -1,10 +1,11 @@ package dns import ( - "github.com/hashicorp/golang-lru/v2" "net" "strings" "time" + + "github.com/hashicorp/golang-lru/v2" ) type lookupCacheEntry struct {