[release] v0.7.3

This commit is contained in:
Yann Stepienik 2023-06-18 10:18:44 +01:00
parent 2028901fa6
commit 97aff87071
2 changed files with 10 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.7.2",
"version": "0.7.3",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -303,16 +303,19 @@ func RestartServer() {
func GetAllHostnames(applyWildCard bool, removePorts bool) []string {
mainHostname := GetMainConfig().HTTPConfig.Hostname
if applyWildCard && MainConfig.HTTPConfig.UseWildcardCertificate {
mainHostname = "*." + mainHostname
Log("Using wildcard certificate for " + mainHostname + " and all subdomains.")
}
hostnames := []string{
mainHostname,
}
if applyWildCard && MainConfig.HTTPConfig.UseWildcardCertificate {
mainHostnameWild = "*." + mainHostname
hostnames := []string{
mainHostname,
mainHostnameWild,
}
Log("Using wildcard certificate for " + mainHostname + " and all subdomains.")
}
proxies := GetMainConfig().HTTPConfig.ProxyConfig.Routes
for _, proxy := range proxies {
if proxy.UseHost && proxy.Host != "" && strings.Contains(proxy.Host, ".") && !strings.Contains(proxy.Host, ",") && !strings.Contains(proxy.Host, " ") {