mirror of https://github.com/1Panel-dev/1Panel
parent
3b057f2c27
commit
50efe607d4
|
@ -4,6 +4,7 @@ import (
|
||||||
"crypto"
|
"crypto"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/1Panel-dev/1Panel/backend/app/model"
|
"github.com/1Panel-dev/1Panel/backend/app/model"
|
||||||
|
@ -292,8 +293,12 @@ func (c *AcmeClient) GetDNSResolve(domains []string) (map[string]Resolve, error)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
challengeInfo := dns01.GetChallengeInfo(domain, keyAuth)
|
challengeInfo := dns01.GetChallengeInfo(domain, keyAuth)
|
||||||
|
fqdn := challengeInfo.FQDN
|
||||||
|
if strings.HasPrefix(domain, "*.") && strings.Contains(fqdn, "*.") {
|
||||||
|
fqdn = strings.Replace(fqdn, "*.", "", 1)
|
||||||
|
}
|
||||||
resolves[domain] = Resolve{
|
resolves[domain] = Resolve{
|
||||||
Key: challengeInfo.FQDN,
|
Key: fqdn,
|
||||||
Value: challengeInfo.Value,
|
Value: challengeInfo.Value,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue