1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

feat(website): Handle uppercase domain names (#7191)

This commit is contained in:
zhengkunwang 2024-11-27 16:02:35 +08:00 committed by GitHub
parent 14c4d3c862
commit cfa08556fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -954,6 +954,7 @@ func getWebsiteDomains(domains []request.WebsiteDomain, defaultPort int, website
if err != nil {
return
}
domainModel.Domain = strings.ToLower(domainModel.Domain)
domainModel.Port = domain.Port
if domain.Port == 0 {
domain.Port = defaultPort