mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
chore: unexpose some plumbing functions
This commit is contained in:
parent
d19998fb91
commit
adcd0dee91
2 changed files with 3 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ func (c *Client) fetchSoaByFqdn(ctx context.Context, fqdn string, nameservers []
|
|||
r *dns.Msg
|
||||
)
|
||||
|
||||
for domain := range DomainsSeq(fqdn) {
|
||||
for domain := range domainsSeq(fqdn) {
|
||||
r, err = c.sendQueryCustom(ctx, domain, dns.TypeSOA, nameservers, true)
|
||||
if err != nil {
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import (
|
|||
* The 2 files should be kept in sync.
|
||||
*/
|
||||
|
||||
// DomainsSeq generates a sequence of domain names derived from a domain (FQDN or not) in descending order.
|
||||
func DomainsSeq(fqdn string) iter.Seq[string] {
|
||||
// domainsSeq generates a sequence of domain names derived from a domain (FQDN or not) in descending order.
|
||||
func domainsSeq(fqdn string) iter.Seq[string] {
|
||||
return func(yield func(string) bool) {
|
||||
if fqdn == "" {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue