[release] v0.18.0-unstable97

This commit is contained in:
Yann Stepienik
2025-02-19 13:22:25 +00:00
parent c78e677e70
commit ed1e2cd2a8

View File

@@ -540,14 +540,14 @@ func GetAllHostnames(applyWildCard bool, removePorts bool) []string {
tempUniqueHostnames := append(wildcards, filterHostnamesByWildcard(othersHostname, wildcards)...)
// hardcode wildcard for local domains
if(MainConfig.HTTPConfig.HTTPSCertificateMode == HTTPSCertModeList["SELFSIGNED"]) {
for _, hostname := range tempUniqueHostnames {
if strings.HasSuffix(hostname, ".local") {
tempUniqueHostnames = append(tempUniqueHostnames, "*.local")
break
}
}
}
// if(MainConfig.HTTPConfig.HTTPSCertificateMode == HTTPSCertModeList["SELFSIGNED"]) {
// for _, hostname := range tempUniqueHostnames {
// if strings.HasSuffix(hostname, ".local") {
// tempUniqueHostnames = append(tempUniqueHostnames, "*.local")
// break
// }
// }
// }
// dedupe
seen = make(map[string]bool)